Skip to content

Commit

Permalink
Merge pull request #34 from CSID-DGU/saokiritoni-patch-1
Browse files Browse the repository at this point in the history
πŸ› [Fix] Dockerfile timezone
  • Loading branch information
saokiritoni authored Nov 29, 2024
2 parents 180e20f + 5034f4f commit 6ca76ae
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
@@ -1,4 +1,8 @@
FROM bellsoft/liberica-openjdk-alpine:17
ENV TZ=Asia/Seoul
RUN apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo "${TZ}" > /etc/timezone
ARG JAR_FILE=build/libs/osori-0.0.1-SNAPSHOT.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "/app.jar"]

0 comments on commit 6ca76ae

Please sign in to comment.