-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (23 loc) · 1.09 KB
/
Dockerfile
File metadata and controls
27 lines (23 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM openjdk:17-jdk-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
wget unzip libnss3 libatk-bridge2.0-0 libgbm1 \
&& rm -rf /var/lib/apt/lists/*
# Chrome 설치
RUN wget -qO /tmp/chrome-shell.zip \
https://storage.googleapis.com/chrome-for-testing-public/135.0.7049.95/linux64/chrome-headless-shell-linux64.zip \
&& unzip /tmp/chrome-shell.zip -d /opt \
&& mv /opt/chrome-headless-shell-linux64 /opt/headless-shell \
&& ln -s /opt/headless-shell/chrome-headless-shell /usr/bin/headless-shell \
&& rm /tmp/chrome-shell.zip
# Chromedriver 설치
RUN wget -qO /tmp/chromedriver.zip \
https://storage.googleapis.com/chrome-for-testing-public/135.0.7049.95/linux64/chromedriver-linux64.zip \
&& unzip /tmp/chromedriver.zip -d /tmp \
&& mv /tmp/chromedriver-linux64/chromedriver /usr/local/bin/ \
&& chmod +x /usr/local/bin/chromedriver \
&& rm -rf /tmp/chromedriver.zip /tmp/chromedriver-linux64
# 애플리케이션 설정
ARG JAR_FILE_PATH=/build/libs/*.jar
COPY $JAR_FILE_PATH app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]