-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdockerfile
More file actions
33 lines (27 loc) · 693 Bytes
/
dockerfile
File metadata and controls
33 lines (27 loc) · 693 Bytes
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
FROM debian:stable-slim
# Set environment variables
ENV ISDOCKER=true
# Install necessary packages
RUN apt update && \
apt upgrade -y && \
apt install -y --no-install-recommends \
curl \
wget \
chromium \
chromium-driver \
python3 \
python3-pip \
python3-flask \
python3-requests \
python3-selenium && \
python3 -m pip install --no-cache-dir --break-system-packages 2captcha-python && \
apt autoremove --purge -y && \
apt clean && \
rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Set entrypoint
ENTRYPOINT ["python3", "main.py"]
EXPOSE 5000