forked from hippocritical/delist_scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 955 Bytes
/
Dockerfile
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
FROM python:slim
# Install necessary dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
software-properties-common \
apt-transport-https \
ca-certificates \
gnupg2
# Add the Chromium repository key
RUN curl -fSsL https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | tee /usr/share/keyrings/chromium-browser.gpg > /dev/null
# Add the Chromium repository
RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/chromium-browser.gpg] http://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/chromium.list
# Install Chromium
RUN apt-get update && \
apt-get install -y --no-install-recommends chromium
# Cleanup
RUN rm -rf /var/lib/apt/lists/*
# Copy other files and set working directory
COPY requirements.txt /app/
WORKDIR /app
RUN pip install -r requirements.txt
COPY . .
# Define the command to run your application
CMD ["python3", "bot.py"]