argos/dmp-backend/Dockerfile

11 lines
459 B
Docker
Raw Permalink Normal View History

2018-02-16 11:34:02 +01:00
FROM openjdk:8-jdk-alpine
2018-07-11 15:47:36 +02:00
RUN apk add --update \
curl \
&& rm -rf /var/cache/apk/*
2018-02-16 11:34:02 +01:00
VOLUME /tmp
2018-07-11 15:47:36 +02:00
ARG PROFILE=production
ENV PROF $PROFILE
ADD web/src/main/resources/ProjectConfiguration.xml /tmp/ProjectConfiguration.xml
ADD web/src/main/resources/ExternalUrls.xml /tmp/ExternalUrls.xml
2018-06-27 12:29:21 +02:00
ADD web/target/web-1.0-SNAPSHOT.jar app.jar
2018-07-11 15:47:36 +02:00
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom" ,"-Dspring.profiles.active=${PROF}","-jar","/app.jar"]