1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/dsvpn/Dockerfile

28 lines
567 B
Docker
Raw Normal View History

2021-10-22 10:25:34 +02:00
FROM alpine:3 AS builder
2019-12-12 14:19:46 +02:00
ENV DSVPN_VERSION=0.1.4
ENV DSVPN_URL=https://github.com/jedisct1/dsvpn/archive/${DSVPN_VERSION}.tar.gz
RUN set -xe \
&& apk add --no-cache build-base curl linux-headers \
&& curl -sSL ${DSVPN_URL} | tar xz \
&& cd dsvpn-${DSVPN_VERSION} \
&& make PREFIX=/usr install
#
# Dockerfile for dsvpn
#
2021-10-22 10:25:34 +02:00
FROM alpine:3
2019-12-12 14:19:46 +02:00
MAINTAINER EasyPi Software Foundation
2019-12-13 06:51:43 +02:00
RUN apk add --no-cache iproute2
2019-12-12 14:19:46 +02:00
COPY --from=builder /usr/sbin/dsvpn /usr/sbin/
WORKDIR /etc/dsvpn
EXPOSE 443
ENTRYPOINT ["dsvpn"]
2019-12-13 06:51:43 +02:00
CMD ["server", "vpn.key", "auto", "443"]