-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (39 loc) · 1.45 KB
/
Dockerfile
File metadata and controls
47 lines (39 loc) · 1.45 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM --platform=linux/amd64 apache/airflow:2.9.1
# Chrome 설치는 루트 권한이 필요하므로
USER root
RUN apt-get update && apt-get install -y \
wget \
gnupg2 \
curl \
unzip \
fonts-liberation \
libappindicator3-1 \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libcups2 \
libdbus-1-3 \
libgdk-pixbuf2.0-0 \
libnspr4 \
libnss3 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
xdg-utils \
--no-install-recommends
# deb 파일 직접 다운로드 및 설치
# RUN wget https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb && \
# dpkg -i google-chrome-stable_114.0.5735.106-1_amd64.deb || true && \
# apt-get install -f -y && \
# rm google-chrome-stable_114.0.5735.106-1_amd64.deb
RUN wget https://mirror.cs.uchicago.edu/google-chrome/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb && \
dpkg -i google-chrome-stable_114.0.5735.90-1_amd64.deb || true && \
apt-get install -f -y && \
rm google-chrome-stable_114.0.5735.90-1_amd64.deb
RUN wget https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip && \
unzip chromedriver_linux64.zip && \
mv chromedriver /usr/local/bin/ && \
rm chromedriver_linux64.zip
USER airflow
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt