password-generator/Dockerfile

10 lines
213 B
Docker
Raw Normal View History

FROM gradle:jdk11 AS build
WORKDIR /root
COPY . .
RUN ["gradle", "bootJar"]
2020-03-16 04:05:49 +01:00
FROM openjdk:11-jre-slim
WORKDIR /root
COPY --from=build /root/build/libs/*.jar app.jar
EXPOSE 80
ENTRYPOINT ["java", "-jar", "app.jar"]