Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
essential2189 authored Jan 22, 2024
1 parent 8391a69 commit 0d16d43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#######################################
FROM openjdk:17-alpine AS builder

ARG PROFILE
ENV PROFILE = ${PROFILE}

WORKDIR /build

# Gradle Wrapper와 설정 파일 복사
Expand All @@ -25,7 +28,8 @@ RUN ./gradlew build -x test --parallel --stacktrace
#######################################
FROM openjdk:17-alpine

ENV PROFILE local
ARG PROFILE
ENV PROFILE = ${PROFILE}

# 빌더 이미지에서 JAR 파일 복사
COPY --from=builder /build/build/libs/*.jar /app.jar
Expand Down

0 comments on commit 0d16d43

Please sign in to comment.