-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (26 loc) · 871 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ibm-semeru-runtimes:open-17-jdk as builder
RUN apt update -qq && \
apt install -y \
binutils
RUN jlink \
--add-modules ALL-MODULE-PATH \
--strip-debug \
--no-man-pages \
--no-header-files \
--compress=2 \
--output /javaruntime
FROM debian:stable-slim
RUN apt update -y && \
apt upgrade -y && \
apt install -y gosu ffmpeg && \
rm -rf /var/lib/apt/lists/*
COPY ./utils/docker-entrypoint.sh /bin
RUN cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime && \
echo "Europe/Moscow" > /etc/timezone && \
chmod +x /bin/docker-entrypoint.sh
ENV JAVA_HOME=/opt/java/openjdk
ENV PATH "${JAVA_HOME}/bin:${PATH}"
COPY --from=builder /javaruntime $JAVA_HOME
COPY --chown=nobody:nogroup ./build/libs/*.jar /workspace/spodlivoi.jar
WORKDIR /workspace
ENTRYPOINT /bin/docker-entrypoint.sh