Skip to content

Commit

Permalink
[Refactor] 도커파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hen715 committed Apr 15, 2024
1 parent a92f735 commit 27c649d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
FROM openjdk:17.0.1-jdk-slim

# 패키지 목록 업데이트 및 필요한 패키지 설치
RUN apt-get -y update && \
apt-get -y install wget unzip curl && \
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
apt -y install ./google-chrome-stable_current_amd64.deb
apt-get -y install wget unzip curl libglib2.0-0 libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdbus-1-3 libxkbcommon0 libxdamage1 libxcomposite1 libxrandr2 libgbm1 libpango-1.0-0 libcairo2 libasound2 libatspi2.0-0 libgtk-3-0

# Chrome zip 파일 다운로드
RUN wget https://storage.googleapis.com/chrome-for-testing-public/114.0.5735.133/linux64/chrome-linux64.zip

# Zip 파일 압축 해제
RUN unzip chrome-linux64.zip -d /opt/chrome

# 압축 해제된 실행 파일에 실행 권한 부여
RUN chmod +x /opt/chrome/chrome-linux/chrome

# 환경변수 설정 (선택적)
ENV PATH="/opt/chrome/chrome-linux:${PATH}"

# ChromeDriver 설치
RUN wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \
RUN wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip && \
unzip /tmp/chromedriver.zip -d /usr/bin && \
rm /tmp/chromedriver.zip

Expand Down

0 comments on commit 27c649d

Please sign in to comment.