Skip to content

Commit e1f2eec

Browse files
committed
๐Ÿ”ง chore: ๋กœ๊ทธ ์ ‘๊ทผ ์ „์šฉ ์‚ฌ์šฉ์ž ๊ถŒํ•œ ์„ค์ •
1 parent b2b504b commit e1f2eec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

โ€ŽDockerfileโ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN ./gradlew dependencies --no-daemon
1313

1414
# ์†Œ์Šค ์ฝ”๋“œ ๋ณต์‚ฌ ๋ฐ ๋นŒ๋“œ
1515
COPY src src
16-
RUN ./gradlew bootJar --no-daemon -x test
16+
RUN ./gradlew bootJar --no-daemon
1717

1818
# 2. Runtime Stage: ์ตœ๊ฒฝ๋Ÿ‰ํ™”๋ฅผ ์œ„ํ•ด JRE Alpine ์‚ฌ์šฉ
1919
FROM eclipse-temurin:17-jre-alpine AS runtime
@@ -29,7 +29,8 @@ COPY --from=build /app/build/libs/*.jar app.jar
2929
# ๋กœ๊ทธ ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ ๋ฐ ๊ถŒํ•œ ๋ถ€์—ฌ
3030
RUN mkdir -p /app/logs && \
3131
chown -R nuntteo:nuntteo /app/logs && \
32-
chown nuntteo:nuntteo app.jar
32+
chmod 755 /app/logs && \
33+
chmod 444 app.jar
3334

3435
USER nuntteo
3536
EXPOSE 8080

0 commit comments

Comments
ย (0)