Warning, /wikitolearn/wikitolearn-pwa-gateway/Dockerfile is written in an unsupported language. File is not indexed.

0001 # Builder image
0002 FROM maven:3.5-jdk-8-alpine as builder
0003 WORKDIR /srv/app/
0004 COPY pom.xml .
0005 RUN mvn -B -C -T 1C org.apache.maven.plugins:maven-dependency-plugin:3.0.2:go-offline
0006 COPY . .
0007 RUN mvn -B -o -T 1C package -DskipTests
0008 
0009 # Executor image
0010 FROM openjdk:8-jre-alpine
0011 RUN apk --update --no-cache add curl
0012 ARG SERVICE_PORT
0013 COPY --from=builder /srv/app/target/*.jar \
0014 /srv/app/app.jar
0015 COPY ./src/main/resources/app-keystore.jks /srv/app/app-keystore.jks
0016 COPY ./src/main/resources/app-truststore.jks /srv/app/app-truststore.jks
0017 WORKDIR /srv/app/
0018 EXPOSE $SERVICE_PORT
0019 ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
0020 HEALTHCHECK --interval=1m --timeout=3s CMD curl -f http://localhost:${SERVICE_PORT}/_meta/status || exit 1