forked from tiredofit/docker-traefik-cloudflare-companion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (50 loc) · 1.38 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
FROM docker.io/tiredofit/alpine:3.16
LABEL maintainer="Dave Conroy (github.com/tiredofit)"
### Set Environment Variables
ENV CONTAINER_ENABLE_MESSAGING=FALSE \
CONTAINER_ENABLE_SCHEDULING=FALSE \
IMAGE_NAME="tiredofit/traefik-cloudflare-companion" \
IMAGE_REPO_URL="https://github.com/tiredofit/docker-traefik-cloudflare-companion/"
### Dependencies
RUN set -x && \
apk update && \
apk upgrade && \
apk add -t .tcc-build-deps \
cargo \
gcc \
libffi-dev \
musl-dev \
openssl-dev \
py-pip \
py3-setuptools \
py3-wheel \
python3-dev \
&& \
\
apk add -t .tcc-run-deps \
py3-beautifulsoup4 \
py3-certifi \
py3-chardet \
py3-idna \
py3-openssl \
py3-requests \
py3-soupsieve \
py3-urllib3 \
py3-websocket-client \
py3-yaml \
python3 \
&& \
\
pip install \
cloudflare \
get-docker-secret \
docker[tls] \
requests \
&& \
\
### Cleanup
apk del .tcc-build-deps && \
rm -rf /root/.cache /root/.cargo && \
rm -rf /var/cache/apk/*
### Add Files
ADD install /