-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (28 loc) · 852 Bytes
/
Dockerfile
File metadata and controls
28 lines (28 loc) · 852 Bytes
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
FROM azul/zulu-openjdk-debian:25-latest AS build
WORKDIR /app
COPY . /app
RUN chmod +x ./gradlew && ./gradlew build installDist
FROM azul/zulu-openjdk-debian:25-latest AS prod
RUN apt-get update && apt-get install -y --no-install-recommends \
osslsigncode \
nano \
vim \
rsync \
socat \
git \
unzip \
curl \
wget \
&& rm -rf /var/lib/apt/lists/* && \
wget https://download2.gluonhq.com/openjfx/25/openjfx-25_linux-x64_bin-jmods.zip && \
unzip openjfx-25_linux-x64_bin-jmods.zip && \
cp javafx-jmods-25/* /usr/lib/jvm/zulu25/jmods && \
rm -r javafx-jmods-25 && \
rm -rf openjfx-25_linux-x64_bin-jmods.zip
WORKDIR /app/data
ENV APP_HOME=/app
ENV LISTEN_PORT=9274
EXPOSE 9274
VOLUME /app/data
COPY --from=build /app/components/launchserver/build/install/launchserver/ /app
ENTRYPOINT ["/app/bin/launchserver"]