Last active
March 18, 2019 19:50
-
-
Save redcho/f072ad3b7ee54aed425bc01d0fc90e71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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