11 lines
459 B
Docker
11 lines
459 B
Docker
FROM openjdk:8-jdk-alpine
|
|
RUN apk add --update \
|
|
curl \
|
|
&& rm -rf /var/cache/apk/*
|
|
VOLUME /tmp
|
|
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
|
|
ADD web/target/web-1.0-SNAPSHOT.jar app.jar
|
|
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom" ,"-Dspring.profiles.active=${PROF}","-jar","/app.jar"] |