docker part 1

This commit is contained in:
2026-02-22 19:47:29 +01:00
parent f6000b1fff
commit d951963d87
12 changed files with 576 additions and 120 deletions

24
Docker/Containerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM alpine:3.19
RUN apk add --no-cache \
wireguard-tools \
iptables \
ip6tables \
bash \
curl \
iputils-ping \
iproute2 \
openresolv
# Create wireguard config directory (config is mounted at runtime)
RUN mkdir -p /etc/wireguard
# Copy entrypoint
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Health check: can we reach the internet through the VPN?
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD ping -c 1 -W 5 1.1.1.1 || exit 1
ENTRYPOINT ["/entrypoint.sh"]