-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (22 loc) · 872 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
FROM openjdk:11.0.7-jre-slim
MAINTAINER Prashant Patel <[email protected]>
# Setting up the application output directory
RUN mkdir -p /apps; chmod -R 777 /apps
# Get artifact
ADD target/springboot-jwt-authentication*exec.jar /apps/springboot-jwt-authentication.jar
# Setting application environment variables
#ENV configUrl=<config server url>
#ENV appName=springboot-jwt-authentication
#ENV env=dev
#ENV branch=dev
#ENV serverPort=10080
ENTRYPOINT exec java $JAVA_OPTS -jar /apps/springboot-jwt-authentication.jar
#ENTRYPOINT exec java $JAVA_OPTS -jar /apps/springboot-jwt-authentication.jar \
# --spring.profiles.active=$env \
# --spring.cloud.config.uri=$configUrl \
# --spring.cloud.config.name=$appName \
# --spring.cloud.config.profile=$env \
# --spring.cloud.config.label=$branch \
# --server.port=$serverPort
# Ports used by the app
EXPOSE $serverPort