-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 708 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 708 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
# Start with a base image containing Java runtime
FROM openjdk:8-jdk-alpine
# Install fonts missing from base alpine image
# These fonts are needed for calls to AWT system being made by the Java Open Chess Engine in the background
RUN apk add ttf-dejavu
# Add Maintainer Info
LABEL maintainer="Mayank K Rastogi"
# 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=build/libs/chessservice-0.0.1-SNAPSHOT.jar
# Add the application's jar to the container
ADD ${JAR_FILE} chessservice.jar
# Run the jar file
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/chessservice.jar"]