-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 859 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 859 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
# latest oracle openjdk is the basis
FROM openjdk:oracle
# copy jar file into container image under app directory
COPY target/waxnote-0.0.1-SNAPSHOT.jar app/waxnote-0.0.1-SNAPSHOT.jar
# expose server port accept connections
EXPOSE 8080
# start application
CMD ["java", "-jar", "app/waxnote-0.0.1-SNAPSHOT.jar"]
# Start with a base image containing Java runtime
# FROM openjdk:8-jdk-alpine
# # Add Maintainer Info
# LABEL maintainer="gbodeabiola@gmail.com"
# # Add a volume pointing to /tmp
# VOLUME /tmp
# # Make port 8080 available to the world outside this container
# EXPOSE 3211
# # The application's jar file
# ARG JAR_FILE=target/waxnote-0.0.1-SNAPSHOT.jar
# # Add the application's jar to the container
# ADD ${JAR_FILE} waxnote.jar
# # Run the jar file
# ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/waxnote.jar"]