Skip to content

Commit

Permalink
Revert Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziedelth committed Jul 3, 2024
1 parent 7464f9b commit 4a1c555
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
FROM amazoncorretto:22 AS build
FROM mcr.microsoft.com/playwright:v1.45.1-jammy
COPY --from=build /usr/lib/jvm/java-22-amazon-corretto /usr/lib/jvm/java-22-amazon-corretto
FROM mcr.microsoft.com/playwright:v1.45.0-jammy
ARG version=21.0.3.9-1
ENV LANG C.UTF-8
ENV JAVA_HOME /usr/lib/jvm/java-21-amazon-corretto
ENV TZ Europe/Paris

ENV LANG=C.UTF-8 \
JAVA_HOME=/usr/lib/jvm/java-22-amazon-corretto \
TZ=Europe/Paris

# Install necessary packages and set timezone
# Install Java and necessary packages
RUN set -eux \
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata libopencv-dev fonts-dejavu \
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl ca-certificates gnupg software-properties-common fontconfig java-common tzdata libopencv-dev fonts-dejavu \
&& curl -fL https://apt.corretto.aws/corretto.key | apt-key add - \
&& add-apt-repository 'deb https://apt.corretto.aws stable main' \
&& mkdir -p /usr/share/man/man1 || true \
&& apt-get update; apt-get install -y java-21-amazon-corretto-jdk=1:$version \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false curl gnupg software-properties-common \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* \
&& ln -snf /usr/share/zoneinfo/"$TZ" /etc/localtime && echo "$TZ" > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata

Expand Down

0 comments on commit 4a1c555

Please sign in to comment.