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 69aa4bc commit 1162afe
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
FROM eclipse-temurin:17-jdk-alpine
# apk를 사용하여 필요한 패키지 설치
RUN apk update \
&& apk add --no-cache chromium chromium-chromedriver curl unzip \
&& rm -rf /var/cache/apk/*
FROM eclipse-temurin:17-jdk

# 필요한 도구 설치
RUN apt-get update && apt-get install -y wget gnupg2 unzip curl && \
apt-get clean

# Google Chrome 설치
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
apt install -y ./google-chrome-stable_current_amd64.deb && \
rm google-chrome-stable_current_amd64.deb

# Chromedriver 설치
RUN CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE) && \
wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip && \
unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ && \
rm /tmp/chromedriver.zip

# 환경변수 설정
ENV CHROME_BIN=/usr/bin/google-chrome
ENV CHROMEDRIVER_PATH=/usr/local/bin/chromedriver

# 여기서부터 나머지 Dockerfile 구성을 계속하세요...


VOLUME /tmp
#ARG JAR_FILE = ./build/libs/inu-portal-0.0.1-SNAPSHOT.jar
Expand Down

0 comments on commit 1162afe

Please sign in to comment.