password-generator/Dockerfile
2020-03-16 03:04:40 +01:00

10 lines
215 B
Docker

FROM gradle:jdk11 AS build
WORKDIR /root
COPY . .
RUN ["gradle", "bootJar"]
FROM openjdk:13-jdk-alpine
WORKDIR /root
COPY --from=build /root/build/libs/*.jar app.jar
EXPOSE 80
ENTRYPOINT ["java", "-jar", "app.jar"]