-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 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
FROM openjdk:8-jdk-alpine
LABEL maintainer="nkmothoa@gmail.com"
VOLUME /tmp
COPY ./target/hybrid-1.0-SNAPSHOT.jar /usr/src/hybrid/
WORKDIR /usr/src/hybrid
EXPOSE 9090
CMD ["java", "-jar", "hybrid-1.0-SNAPSHOT.jar"]
# # Start with a base image containing Java runtime
# FROM openjdk:8-jdk-alpine
# # Add Maintainer Info
# LABEL maintainer="callicoder@gmail.com"
# # Add a volume pointing to /tmp
# VOLUME /tmp
# # Make port 8080 available to the world outside this container
# EXPOSE 8080
# # The application's jar file
# ARG JAR_FILE=target/websocket-demo-0.0.1-SNAPSHOT.jar
# # Add the application's jar to the container
# ADD ${JAR_FILE} websocket-demo.jar
# # Run the jar file
# ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/websocket-demo.jar"