-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (30 loc) · 1.07 KB
/
Copy pathDockerfile
File metadata and controls
40 lines (30 loc) · 1.07 KB
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
# syntax=docker/dockerfile:1
FROM alpine:latest
LABEL org.opencontainers.image.source="https://github.com/rooty/proxy-vpn"
LABEL org.opencontainers.image.description="OpenVPN+Proxy"
LABEL org.opencontainers.image.licenses=MIT
ARG TARGETARCH=amd64
# Install packages
RUN apk --no-cache add \
runit \
curl \
openvpn \
apache2-utils \
bash \
jq \
&& rm -rf /var/cache/apk/*
RUN curl -fsSL "https://github.com/SenseUnit/dumbproxy/releases/latest/download/dumbproxy.linux-${TARGETARCH}" \
-o /usr/local/bin/dumbproxy \
&& chmod +x /usr/local/bin/dumbproxy
# Add configuration files
COPY --chown=nobody rootfs/ /
# Add application
WORKDIR /etc/openvpn
# Expose the port nginx is reachable on
EXPOSE 8888
# Let runit start nginx & php-fpm
# Ensure /bin/docker-entrypoint.sh is always executed
ENTRYPOINT ["/bin/docker-entrypoint.sh"]
# Configure a healthcheck to validate that everything is up&running
#HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/fpm-ping || exit 1
HEALTHCHECK CMD /bin/check.sh