mirror of
https://github.com/Lovinoes/images.git
synced 2024-12-21 16:37:45 -05:00
Create Dockerfile
This commit is contained in:
parent
6f2f8d8e17
commit
aaa33877a0
1 changed files with 28 additions and 0 deletions
28
java-corretto/21/Dockerfile
Normal file
28
java-corretto/21/Dockerfile
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
FROM amazoncorretto:21
|
||||||
|
|
||||||
|
# Metadata
|
||||||
|
LABEL author="Lovinoes" maintainer="lovinoes@lovinoes.de"
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/lovinoes/images"
|
||||||
|
LABEL org.opencontainers.image.licenses="MIT"
|
||||||
|
|
||||||
|
# Install necessary packages
|
||||||
|
RUN yum upgrade -y \
|
||||||
|
&& yum install -y curl ca-certificates openssl git tar sqlite fontconfig freetype libstdc++.so.6 freetype-devel lsof build-essential tzdata iproute \
|
||||||
|
git gcc gcc-c++ automake make libtool \
|
||||||
|
&& yum clean all \
|
||||||
|
&& rm -rf /var/cache/yum \
|
||||||
|
&& useradd -m -d /home/container container
|
||||||
|
|
||||||
|
# Set locale and language environment variables
|
||||||
|
ENV LC_ALL=en_US.UTF-8
|
||||||
|
ENV LANG=en_US.UTF-8
|
||||||
|
ENV LANGUAGE=en_US.UTF-8
|
||||||
|
|
||||||
|
# Copy the entrypoint script
|
||||||
|
USER container
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
# Set the entrypoint command
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
CMD [ "/bin/bash", "/entrypoint.sh" ]
|
Loading…
Reference in a new issue