Skip to content

Instantly share code, notes, and snippets.

@redcho
Last active March 18, 2019 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redcho/f072ad3b7ee54aed425bc01d0fc90e71 to your computer and use it in GitHub Desktop.
Save redcho/f072ad3b7ee54aed425bc01d0fc90e71 to your computer and use it in GitHub Desktop.
FROM alpine:3.7
COPY rootfs /
RUN apk --update add --no-cache \
curl=7.61.1-r2 \
openvpn=2.4.4-r1 \
supervisor \
openssh
RUN mkdir /var/run/sshd
RUN mkdir /log
RUN touch /log/supervisord.log
RUN echo "root:root" | chpasswd
RUN sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config
COPY supervisord.conf /etc/supervisord.conf
EXPOSE 22
VOLUME ["/vpn", "/log"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment