-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Dockerfile
64 lines (60 loc) · 1.75 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
ARG DISTRO="alpine"
ARG DISTRO_VARIANT="3.21"
FROM docker.io/tiredofit/${DISTRO}:${DISTRO_VARIANT}-7.10.24
LABEL maintainer="Dave Conroy (github.com/tiredofit)"
ENV CONTAINER_ENABLE_MESSAGING=FALSE \
CONTAINER_ENABLE_SCHEDULING=FALSE \
CONTAINER_PROCESS_RUNAWAY_PROTECTOR=FALSE \
IMAGE_NAME="tiredofit/traefik-cloudflare-companion" \
IMAGE_REPO_URL="https://github.com/tiredofit/docker-traefik-cloudflare-companion/"
RUN source /assets/functions/00-container && \
set -x && \
addgroup -S -g 8080 tcc && \
adduser -D -S -s /sbin/nologin \
-h /dev/null \
-G tcc \
-g "tcc" \
-u 8080 tcc \
&& \
\
package update && \
package upgrade && \
package install .tcc-build-deps \
cargo \
gcc \
libffi-dev \
musl-dev \
openssl-dev \
py-pip \
py3-setuptools \
py3-wheel \
python3-dev \
&& \
\
package install .tcc-run-deps \
docker-py \
py3-beautifulsoup4 \
py3-certifi \
py3-chardet \
py3-idna \
py3-openssl \
py3-packaging \
py3-requests \
py3-soupsieve \
py3-urllib3 \
py3-websocket-client \
py3-yaml \
python3 \
&& \
\
pip install --break-system-packages \
cloudflare==2.19.* \
get-docker-secret \
requests \
&& \
\
package remove .tcc-build-deps && \
package cleanup && \
rm -rf /root/.cache \
/root/.cargo
COPY install /