Projekt

Obecné

Profil

Stáhnout (338 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 efc2257b castic96
### STAGE 1: BUILD ###
2
FROM maven:3.6.3-jdk-11-slim AS build
3
RUN mkdir -p /workspace
4
WORKDIR /workspace
5
COPY pom.xml /workspace
6
COPY src /workspace/src
7
RUN mvn -f pom.xml clean package
8
9
### STAGE 2: RUN ###
10 f86130aa Ondřej Váně
FROM adoptopenjdk:11-jre-hotspot
11 efc2257b castic96
COPY --from=build /workspace/target/*.jar app.jar
12
EXPOSE 8080
13
ENTRYPOINT ["java","-jar","app.jar"]