1 Star 0 Fork 2

dlcf/openvpn-docker

forked from atompi/openvpn-docker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
atompi 提交于 2020-12-24 13:48 . add user by pass
FROM alpine:latest
MAINTAINER atompi <[email protected]>
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
&& apk add --update openvpn iptables bash easy-rsa unzip zip \
&& cp -r /usr/share/easy-rsa /etc/openvpn/ \
&& ln -s /etc/openvpn/easy-rsa/easyrsa /usr/local/bin \
&& mkdir -p /etc/openvpn/server/certs /etc/openvpn/client/keys /openvpn-docker/users /var/log/openvpn \
&& chown openvpn:openvpn /var/log/openvpn \
&& rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
COPY server.conf /etc/openvpn/server.conf
COPY sample.ovpn /etc/openvpn/client/sample.ovpn
COPY vars /etc/openvpn/easy-rsa/vars
COPY ovpn_adduser_by_pass.sh ovpn_adduser.sh ovpn_deluser.sh init.sh entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/*.sh \
&& mv /etc/openvpn /openvpn-docker/server
VOLUME /openvpn-docker/users
VOLUME /etc/openvpn
EXPOSE 1194/tcp 1194/udp
CMD ["entrypoint.sh"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dlcf/openvpn-docker.git
[email protected]:dlcf/openvpn-docker.git
dlcf
openvpn-docker
openvpn-docker
master

搜索帮助