-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
25 lines (19 loc) · 1002 Bytes
/
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
FROM docker.io/alpine:3.13
LABEL maintainer='Alex Wicks <[email protected]>'
# BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
# COMMIT_SHA="$(git rev-parse HEAD 2>/dev/null || echo 'null')"
ARG BUILD_DATE COMMIT_SHA
# https://github.com/opencontainers/image-spec/blob/master/spec.md
LABEL org.opencontainers.image.title='openconnect' \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.description='AnyConnect-compatible client to route host traffic' \
org.opencontainers.image.documentation='https://github.com/aw1cks/openconnect/blob/master/README.md' \
org.opencontainers.image.version='1.0' \
org.opencontainers.image.source='https://github.com/aw1cks/openconnect' \
org.opencontainers.image.revision="${COMMIT_SHA}"
RUN apk add --no-cache openconnect dnsmasq
WORKDIR /vpn
COPY ./entrypoint.sh .
HEALTHCHECK --start-period=15s --retries=1 \
CMD pgrep openconnect || exit 1; pgrep dnsmasq || exit 1
ENTRYPOINT ["/vpn/entrypoint.sh"]