Skip to content

Commit

Permalink
[Bug] #58 - 도커파일 수정 test 9
Browse files Browse the repository at this point in the history
  • Loading branch information
dudtlstm committed Dec 2, 2024
1 parent ab1d51b commit 5fa8d42
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
# Dockerfile
FROM bellsoft/liberica-openjdk-alpine:17
# Base Image
FROM bellsoft/liberica-openjdk-debian:17

# 시스템 시간대를 설정
# 시스템 시간대 설정
ENV TZ=Asia/Seoul
RUN apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo "${TZ}" > /etc/timezone

# 필수 패키지 설치
RUN apk add --no-cache \
RUN apt-get update && apt-get install -y \
tzdata \
curl \
wget \
unzip \
bash \
libstdc++ \
libx11 \
libxcomposite \
libxdamage \
libxext \
libxrandr \
libxi \
libxcb \
libnss3 \
libglib \
libgobject \
mesa-gl \
libx11-6 \
libxcomposite1 \
libxdamage1 \
libxext6 \
libxrandr2 \
libxi6 \
libatk1.0-0 \
libxcb1 \
libstdc++6 \
mesa-utils \
&& rm -rf /var/lib/apt/lists/* \
&& cp /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo "${TZ}" > /etc/timezone

# Google Chrome 설치
# Google Chrome 다운로드
RUN wget -O /tmp/chrome-linux64.zip https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.85/linux64/chrome-linux64.zip \
&& unzip /tmp/chrome-linux64.zip -d /usr/local/ \
&& mv /usr/local/chrome-linux64 /usr/local/google-chrome \
&& ln -s /usr/local/google-chrome/chrome /usr/bin/google-chrome \
&& rm -rf /tmp/chrome-linux64.zip

# ChromeDriver 설치
# ChromeDriver 다운로드
RUN wget -O /tmp/chromedriver-linux64.zip https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.85/linux64/chromedriver-linux64.zip \
&& unzip /tmp/chromedriver-linux64.zip -d /usr/local/ \
&& mv /usr/local/chromedriver-linux64/chromedriver /usr/bin/chromedriver \
Expand All @@ -44,5 +41,5 @@ RUN wget -O /tmp/chromedriver-linux64.zip https://storage.googleapis.com/chrome-
ARG JAR_FILE=build/libs/sw-0.0.1-SNAPSHOT.jar
COPY ${JAR_FILE} app.jar

# JVM 시간대 설정을 포함한 애플리케이션 실행
ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "/app.jar"]
# JVM 시간대 설정 및 애플리케이션 실행
ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "/app.jar"]

0 comments on commit 5fa8d42

Please sign in to comment.