Skip to content

Commit

Permalink
feat: 셀레니움 도커파일 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwonsheep committed Jan 10, 2025
1 parent c4a857a commit 840a548
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions backend/baguni-batch/Dockerfile-Selenium
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM openjdk:17-jdk-slim-buster

# 시스템 패키지 업데이트 및 설치
RUN apt-get update -y && \
apt-get install -y wget unzip curl xvfb

# 영어로 언어 설정 - 셀레니움을 위해서
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

# Google Chrome 설치
RUN wget https://chrome-versions.com/google-chrome-stable-114.0.5735.106-1.deb && \
apt-get install -y ./google-chrome-stable-114.0.5735.106-1.deb && \
rm -f ./google-chrome-stable-114.0.5735.106-1.deb && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Chromedriver 설치
RUN wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/114.0.5735.106/chromedriver_linux64.zip && \
unzip /tmp/chromedriver.zip -d /usr/local/bin/ && \
rm -f /tmp/chromedriver.zip && \

# Xvfb 설정
RUN Xvfb :99 -ac &
ENV DISPLAY=:99

0 comments on commit 840a548

Please sign in to comment.