Skip to content

Commit

Permalink
🔧 chore : 도커 파일 수정
Browse files Browse the repository at this point in the history
크롬을 설치하는 코드를 추가한 도커 파일입니다.
  • Loading branch information
seoshinehyo committed Feb 10, 2025
1 parent e9ce9e0 commit e985ffe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
FROM openjdk:21

# 크롬 설치
RUN apt-get update && apt-get install -y wget curl unzip \
&& wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& apt-get install -y ./google-chrome-stable_current_amd64.deb \
&& rm ./google-chrome-stable_current_amd64.deb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# JAR 파일 복사 및 실행
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} mody-server-0.0.1.jar
ENTRYPOINT ["java","-jar","/mody-server-0.0.1.jar"]

0 comments on commit e985ffe

Please sign in to comment.