Files
WGDashboard/Dockerfile
T

24 lines
961 B
Docker
Raw Normal View History

2024-08-22 23:15:39 -05:00
# Pull from small Debian stable image.
FROM alpine:latest
LABEL maintainer="dselen@nerthus.nl"
ENV PYTHONPATH="/usr/bin/python"
2024-08-23 16:49:54 -05:00
WORKDIR /opt/wireguarddashboard/src
2024-08-22 23:15:39 -05:00
RUN apk update && \
apk add --no-cache py3-bcrypt py3-psutil && \
apk add --no-cache wireguard-tools && \
apk add --no-cache net-tools iproute2 iptables ip6tables && \
apk add --no-cache inotify-tools procps openresolv && \
2024-08-23 16:49:54 -05:00
mkdir /opt/wireguarddashboard/src/master-key
2024-08-22 23:15:39 -05:00
2024-08-23 16:49:54 -05:00
COPY ./src /opt/wireguarddashboard/src/
COPY ./docker/wgd.sh /opt/wireguarddashboard/src/
COPY ./docker/requirements.txt /opt/wireguarddashboard/src/
2024-08-22 23:15:39 -05:00
2024-08-23 16:49:54 -05:00
RUN chmod u+x /opt/wireguarddashboard/src/entrypoint.sh
2024-08-22 23:15:39 -05:00
# Defining a way for Docker to check the health of the container. In this case: checking the login URL.
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost:10086/signin || exit 1
2024-08-23 16:49:54 -05:00
ENTRYPOINT ["/opt/wireguarddashboard/src/entrypoint.sh"]