forked from hsand/pia-wg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (28 loc) · 1.23 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
FROM ubuntu:24.04@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab
# Build command
# time DOCKER_BUILDKIT=0 docker build -t pia-wg . -f Dockerfile
ARG DEBIAN_FRONTEND=noninteractive
#ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV PIP_NO_CACHE_DIR=1
COPY . .
RUN apt-get update && \
apt-get dist-upgrade -y && \
DEBIAN_FRONTEND=${DEBIAN_FRONTEND} apt-get install -y --no-install-recommends python3-pip git qrencode wireguard-tools && \
python3 -m pip install --no-cache-dir --upgrade pip && \
pip3 install --no-cache-dir -r requirements.txt && \
apt-get purge -y git && \
apt-get autoremove -y --purge && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
LABEL org.opencontainers.image.authors="Jauder Ho <[email protected]>"
LABEL org.opencontainers.image.url="https://github.com/jauderho/dockerfiles"
LABEL org.opencontainers.image.documentation="https://github.com/jauderho/dockerfiles"
LABEL org.opencontainers.image.source="https://github.com/jauderho/dockerfiles"
LABEL org.opencontainers.image.title="jauderho/pia-wg"
LABEL org.opencontainers.image.description="A WireGuard configuration utility for Private Internet Access"
# EXPOSE
# ENV
# STOPSIGNAL
HEALTHCHECK NONE
# USER
ENTRYPOINT ["/entrypoint.sh"]