aswi2020anonymous-gitlab/be/fulltextsearch/Dockerfile @ 1e6d072b
1 |
### 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 |
FROM adoptopenjdk:11-jre-hotspot |
11 |
COPY --from=build /workspace/target/*.jar app.jar |
12 |
EXPOSE 8080 |
13 |
ENTRYPOINT ["java","-jar","app.jar"] |