Skip to content

Commit 9b63f73

Browse files
authored
Merge pull request #361 from prgrms-web-devcourse-final-project/refactor#360
[refactor] time zone 수정
2 parents 2a804d4 + 6a131b5 commit 9b63f73

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168
docker pull $IMAGE
169169
docker stop $CONTAINER_1_NAME || true
170170
docker rm $CONTAINER_1_NAME || true
171-
docker run -d --restart unless-stopped --name $CONTAINER_1_NAME --network $NET $IMAGE
171+
docker run -d --restart unless-stopped --name $CONTAINER_1_NAME --network $NET -e TZ=Asia/Seoul $IMAGE
172172
{
173173
docker images --format '{{.Repository}}:{{.Tag}}' \
174174
| grep -F "ghcr.io/${OWNER_LC}/${IMAGE_REPOSITORY}:" \

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,8 @@ WORKDIR /app
3131
COPY --from=builder /app/build/libs/*.jar app.jar
3232
COPY --from=builder /app/.env .env
3333

34+
# 타임존 설정
35+
ENV TZ=Asia/Seoul
36+
3437
# 실행할 JAR 파일 지정
35-
ENTRYPOINT ["java", "-Dspring.profiles.active=prod", "-jar", "app.jar"]
38+
ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-Dspring.profiles.active=prod", "-jar", "app.jar"]

0 commit comments

Comments
 (0)