Skip to content

Commit

Permalink
�deploy: 도커 컨테이너 타임존 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
minsu20 authored Nov 22, 2023
1 parent 9dbefcd commit 6346bd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM openjdk:11-jdk

# 타임존 설정
ENV TZ=Asia/Seoul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ARG CACHEBREAKER=1
ARG JAR_FILE=./build/libs/backend-0.0.1-SNAPSHOT.jar
COPY ${JAR_FILE} app.jar
Expand All @@ -8,3 +13,4 @@ COPY ./build/docs/asciidoc/*.html /static/docs/

# 애플리케이션 실행 시 -cp 옵션을 사용하여 /static/docs 디렉토리를 클래스패스에 추가
ENTRYPOINT ["java","-cp",".:/static/docs","-jar","/app.jar"]

0 comments on commit 6346bd4

Please sign in to comment.