Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dong2ast authored Jan 18, 2024
1 parent ddad9ba commit 8220393
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ FROM amd64/amazoncorretto:17
# 작업 디렉터리 설정
WORKDIR /app

# 컨테이너 한글 설정
RUN apt-get update && apt-get install -y locales
RUN locale-gen ko_KR.UTF-8
ENV LC_ALL ko_KR.UTF-8

# 애플리케이션 JAR 파일 복사
COPY ./build/libs/lequuServer-0.0.1-SNAPSHOT.jar /app/lequuServer.jar

Expand All @@ -27,4 +32,4 @@ ENV AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
ENV AWS_OUTPUT_FORMAT=${AWS_OUTPUT_FORMAT}

# 컨테이너 실행 시 Java 애플리케이션 실행
CMD ["java", "-Duser.timezone=Asia/Seoul", "-jar", "-Dspring.profiles.active=dev", "lequuServer.jar"]
CMD ["java", "-Duser.timezone=Asia/Seoul", "-jar", "-Dspring.profiles.active=dev", "lequuServer.jar"]

0 comments on commit 8220393

Please sign in to comment.