Dockerfile 368 Bytes
Newer Older
Dominik Vayhinger's avatar
Dominik Vayhinger committed
1
2
3
#Dockerfile

#base image
4
FROM openjdk:11-jre-slim
Dominik Vayhinger's avatar
Dominik Vayhinger committed
5

6
ADD target/dtt-backend.jar app.jar
Dominik Vayhinger's avatar
Dominik Vayhinger committed
7
8
9

# Prepare environment.
# Create needed folders
10
11
12
RUN mkdir /dtt && \
    mkdir /dtt/data && \
    mkdir /dtt/config
13
14

VOLUME /modocot/data
Dominik Vayhinger's avatar
Dominik Vayhinger committed
15

16
env SPRING_CONFIG_ADDITIONAL_LOCATION "file:/home/dtt/config/"
Dominik Vayhinger's avatar
Dominik Vayhinger committed
17

18
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]