-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4a857a
commit 840a548
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |