-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (29 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
34 lines (29 loc) · 782 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
29
30
31
32
33
34
# FROM mozilla/sbt:latest AS BUILDER
#
# WORKDIR /app
#
# COPY ./build.sbt build.sbt
#
# RUN sbt install
#
# COPY ./custom custom
# COPY ./public public
# COPY ./resources resources
# COPY ./conf conf
# COPY ./project project
# COPY ./test test
# COPY ./app app
#
# RUN sbt stage
FROM eclipse-temurin:25-jre AS cacerts-source
# Stage 2: actual application image
FROM openjdk:8u342-jdk
WORKDIR /app
ENV _JAVA_OPTS=""
ENV PORT=80
ENV CONFIG_FILE=/app/conf/local.conf
# Copy the updated cacerts from the modern JRE image
COPY --from=cacerts-source /opt/java/openjdk/lib/security/cacerts \
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
COPY ./target/universal/stage /app
CMD /app/bin/with -Dhttp.address=0.0.0.0 -Dhttp.port=$PORT -Dconfig.file=$CONFIG_FILE