1
Fork 0
mirror of https://github.com/Lovinoes/images.git synced 2024-12-21 16:37:45 -05:00

Create Dockerfile

This commit is contained in:
Lovinoes 2024-08-21 01:42:08 +02:00 committed by GitHub
parent bf87c1d468
commit 0a19db3d5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,28 @@
FROM shipilev/openjdk:17
# 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 apt-get update -y \
&& apt-get install -y --no-install-recommends curl ca-certificates openssl git tar sqlite3 fontconfig libfreetype6 libstdc++6 lsof build-essential tzdata iproute2 locales \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& useradd -m -d /home/container container \
&& locale-gen en_US.UTF-8
# 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" ]