-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 721 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 721 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
# The different stages of this Dockerfile are meant to be built into separate images
# https://docs.docker.com/develop/develop-images/multistage-build/#stop-at-a-specific-build-stage
# https://docs.docker.com/compose/compose-file/#target
# -------
# Builder
# -------
FROM --platform=${BUILDPLATFORM:-linux/amd64} gradle:jdk8 AS build
WORKDIR /home/gradle/src
COPY --chown=gradle:gradle . .
RUN set -eux; \
\
gradle lib:build --no-daemon; \
gradle server:build --no-daemon
# ---------------
# Final Container
# ---------------
FROM openjdk:8-jre-slim
WORKDIR /data
COPY --from=build /home/gradle/src/server/build/libs/jass-server.jar /opt/jass-server.jar
ENTRYPOINT ["java", "-jar", "/opt/jass-server.jar"]