Skip to content

Commit

Permalink
refactor: 도커 이미지 경량화
Browse files Browse the repository at this point in the history
  • Loading branch information
ghk01214 committed Nov 7, 2024
1 parent 860bac2 commit 52fd064
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ COPY settings.gradle build.gradle ./
COPY gradle ./gradle
COPY gradlew ./

RUN chmod +x gradlew

RUN ./gradlew dependencies
RUN chmod +x gradlew && \
./gradlew dependencies

COPY . .

RUN ./gradlew clean build -x test

RUN cp .env build
RUN cp */build/libs/*-SNAPSHOT.jar build
RUN ./gradlew clean build -x test && \
cp .env build && \
cp */build/libs/*-SNAPSHOT.jar build

0 comments on commit 52fd064

Please sign in to comment.