From c8caf5655e2e1fea6d11590a6c47de87ee728981 Mon Sep 17 00:00:00 2001 From: Lovinoes Date: Wed, 21 Aug 2024 01:51:00 +0200 Subject: [PATCH] Create Dockerfile --- java-temurin/17/Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 java-temurin/17/Dockerfile diff --git a/java-temurin/17/Dockerfile b/java-temurin/17/Dockerfile new file mode 100644 index 0000000..28c1118 --- /dev/null +++ b/java-temurin/17/Dockerfile @@ -0,0 +1,28 @@ +FROM eclipse-temurin:17-focal + +# 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" ]