...
Code Block | ||
---|---|---|
| ||
FROM gradle:4.2.1-jdk8-alpine as build
WORKDIR /app
COPY . /app
COPY ./src /app/src
user root
RUN chmod +x ./mvnw
RUN ./mvnw clean package
FROM openjdk:8-jdk-alpine
COPY target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","/app.jar"] |
...