We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2b504b commit e1f2eecCopy full SHA for e1f2eec
โDockerfileโ
@@ -13,7 +13,7 @@ RUN ./gradlew dependencies --no-daemon
13
14
# ์์ค ์ฝ๋ ๋ณต์ฌ ๋ฐ ๋น๋
15
COPY src src
16
-RUN ./gradlew bootJar --no-daemon -x test
+RUN ./gradlew bootJar --no-daemon
17
18
# 2. Runtime Stage: ์ต๊ฒฝ๋ํ๋ฅผ ์ํด JRE Alpine ์ฌ์ฉ
19
FROM eclipse-temurin:17-jre-alpine AS runtime
@@ -29,7 +29,8 @@ COPY --from=build /app/build/libs/*.jar app.jar
29
# ๋ก๊ทธ ๋๋ ํ ๋ฆฌ ์์ฑ ๋ฐ ๊ถํ ๋ถ์ฌ
30
RUN mkdir -p /app/logs && \
31
chown -R nuntteo:nuntteo /app/logs && \
32
- chown nuntteo:nuntteo app.jar
+ chmod 755 /app/logs && \
33
+ chmod 444 app.jar
34
35
USER nuntteo
36
EXPOSE 8080
0 commit comments