mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-12 11:14:57 +02:00
28 lines
548 B
Docker
28 lines
548 B
Docker
|
FROM alpine AS builder
|
||
|
|
||
|
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
|
||
|
#
|
||
|
|
||
|
FROM alpine
|
||
|
MAINTAINER EasyPi Software Foundation
|
||
|
|
||
|
RUN apk add --no-cache iptables
|
||
|
COPY --from=builder /usr/sbin/dsvpn /usr/sbin/
|
||
|
|
||
|
WORKDIR /etc/dsvpn
|
||
|
|
||
|
EXPOSE 443
|
||
|
|
||
|
ENTRYPOINT ["dsvpn"]
|
||
|
CMD ["server", "vpn.key"]
|