Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zzunipark authored Dec 29, 2024
1 parent a9e790c commit f03e736
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM openjdk:17
FROM openjdk:17-slim

ENV TZ=Asia/Seoul
RUN apt-get update && apt-get install -y tzdata && \
RUN apt-get update && \
apt-get install -y --no-install-recommends tzdata ca-certificates apt-transport-https gnupg && \
ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
dpkg-reconfigure -f noninteractive tzdata && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar

# 애플리케이션 실행
ENTRYPOINT ["java", "-jar", "/app.jar"]

0 comments on commit f03e736

Please sign in to comment.