diff --git a/Dockerfile b/Dockerfile index ec050a2..623249b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]