-
Notifications
You must be signed in to change notification settings - Fork 8
/
DockerfileDebian
42 lines (35 loc) · 1.22 KB
/
DockerfileDebian
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
## Start from the official Debian image
FROM debian:bullseye
## Start from minimalist Debian image
## (barely smaller than using official image for this setup)
# FROM bitnami/minideb:bullseye
LABEL maintainer="MDW <[email protected]>"
## Set environment variables
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# Not on Debian: firefox firefox-geckodriver
RUN export DEBIAN_FRONTEND="noninteractive" \
&& echo 'APT::Keep-Downloaded-Packages "false";' \
> /etc/apt/apt.conf.d/01disable-cache \
&& echo 'DPkg::Post-Invoke {"/bin/rm -f /var/cache/apt/archives/*.deb || true";};' \
> /etc/apt/apt.conf.d/clean \
&& apt-get update --fix-missing \
&& apt-get upgrade -y \
&& apt-get dist-upgrade -y \
&& apt-get install -y \
xvfb \
xauth \
xserver-xephyr \
chromium-driver \
chromium \
python3-pip \
python3-selenium \
python3-pyvirtualdisplay \
python3-colorama \
python3-urllib3 \
python3-requests \
python3-paho-mqtt \
&& apt clean && apt autoremove -y \
&& rm -rf /var/lib/apt/lists/*
RUN addgroup -gid 1000 docker && adduser -disabled-password -u 1000 -gid 1000 docker
# RUN pip3 install \
# '2captcha-python>=1.1.3'