2018-01-02 11:55:43 +07:00
|
|
|
FROM gradle:jdk-alpine
|
|
|
|
|
|
|
|
WORKDIR /home/gradle/project
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
RUN apk update
|
|
|
|
|
|
|
|
ENV GRADLE_USER_HOME /home/gradle/project
|
|
|
|
|
|
|
|
COPY . /home/gradle/project
|
|
|
|
|
2020-12-28 02:02:36 +07:00
|
|
|
RUN ./gradlew build
|
2018-01-02 11:55:43 +07:00
|
|
|
|
|
|
|
|
|
|
|
FROM java:jre-alpine
|
|
|
|
|
|
|
|
WORKDIR /home/gradle/project
|
|
|
|
|
|
|
|
COPY --from=0 /home/gradle/project/build/libs/project-0.0.1-SNAPSHOT.jar .
|
|
|
|
|
|
|
|
ENTRYPOINT java -jar project-0.0.1-SNAPSHOT.jar
|