seb-server/docker/demo/DOCKERFILE

15 lines
525 B
Text
Raw Normal View History

2019-02-01 23:38:47 +01:00
FROM alpine/git
WORKDIR /demo
RUN git clone https://github.com/SafeExamBrowser/seb-server.git
2019-02-01 22:18:31 +01:00
2019-02-01 23:38:47 +01:00
FROM maven:3.5-jdk-8-alpine
2019-02-01 22:18:31 +01:00
WORKDIR /demo
2019-02-01 23:38:47 +01:00
COPY --from=0 /demo/seb-server /demo
RUN mvn clean install -e -P Demo -DskipTests
2019-02-01 22:18:31 +01:00
2019-02-01 23:38:47 +01:00
FROM openjdk:8-jre-alpine
WORKDIR /demo
COPY --from=1 /demo/target/seb-server-0.1.0-SNAPSHOT.jar /demo
2019-02-04 16:34:34 +01:00
EXPOSE 8080
2019-02-01 23:38:47 +01:00
ENTRYPOINT ["sh", "-c"]
CMD ["java -jar seb-server-0.1.0-SNAPSHOT.jar --spring.config.location=classpath:/config/,file:/demo/externalResources/ --spring.profiles.active=demo"]