Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kyj2212 authored Nov 11, 2022
1 parent 5953248 commit 430f209
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions 4Week_Mission/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM eclipse-temurin:17-alpine as builder
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar
RUN java -Djarmode=layertools -jar app.jar extract
FROM nginx

FROM eclipse-temurin:17-alpine
WORKDIR application
COPY --from=builder dependencies/ ./
COPY --from=builder snapshot-dependencies/ ./
COPY --from=builder spring-boot-loader/ ./
COPY --from=builder application/ ./
ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"]
COPY ./nginx-1 /usr/share/nginx/html
# FROM eclipse-temurin:17-alpine as builder
# ARG JAR_FILE=build/libs/*.jar
# COPY ${JAR_FILE} app.jar
# RUN java -Djarmode=layertools -jar app.jar extract

# FROM eclipse-temurin:17-alpine
# WORKDIR application
# COPY --from=builder dependencies/ ./
# COPY --from=builder snapshot-dependencies/ ./
# COPY --from=builder spring-boot-loader/ ./
# COPY --from=builder application/ ./
# ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"]

0 comments on commit 430f209

Please sign in to comment.