29 lines
691 B
Docker
29 lines
691 B
Docker
FROM alpine:3.14
|
|
|
|
ARG GRAALVERSION
|
|
ARG SDKMAN
|
|
|
|
COPY platform.sh ./platform.sh
|
|
RUN ls -l
|
|
RUN chmod +x ./platform.sh && ./platform.sh
|
|
|
|
RUN apk update && apk upgrade && \
|
|
apk add --no-cache curl ca-certificates bash tzdata fontconfig zip sed
|
|
|
|
RUN curl -s "https://get.sdkman.io" | bash && \
|
|
source "$SDKMAN/bin/sdkman-init.sh" && \
|
|
sdk install java $GRAALVERSION && \
|
|
sdk flush
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
RUN adduser -D -h /home/container -s /bin/bash container
|
|
USER container
|
|
WORKDIR /home/container
|
|
|
|
COPY _docker-java-home /usr/local/bin/docker-java-home
|
|
COPY _bashrc /home/container/.bashrc
|
|
COPY _entrypoint.sh /entrypoint.sh
|
|
|
|
# Commande d'entrée
|
|
CMD ["/bin/bash", "/entrypoint.sh"] |