mirror of
https://github.com/sstent/containers.git
synced 2026-01-26 00:52:00 +00:00
first
This commit is contained in:
36
openpyn_alpine/Dockerfile
Normal file
36
openpyn_alpine/Dockerfile
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
ENV OpenVPN-Client 1.0
|
||||
|
||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories
|
||||
|
||||
RUN apk add openvpn unzip wget dante-server sudo expect iputils
|
||||
|
||||
RUN apk add --no-cache python3 && \
|
||||
python3 -m ensurepip && \
|
||||
rm -r /usr/lib/python*/ensurepip && \
|
||||
pip3 install --upgrade pip setuptools && \
|
||||
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
|
||||
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi
|
||||
|
||||
ADD sockd.conf /etc/sockd.conf
|
||||
ADD sockd.sh /usr/local/bin/
|
||||
RUN chmod a+x /usr/local/bin/sockd.sh
|
||||
|
||||
|
||||
RUN pip3 install verboselogs
|
||||
RUN pip3 install --upgrade openpyn
|
||||
|
||||
WORKDIR /root
|
||||
ADD openpyn_init.exp .
|
||||
RUN expect openpyn_init.exp
|
||||
|
||||
|
||||
ADD run.sh /usr/local/bin/startup.sh
|
||||
RUN chmod a+x /usr/local/bin/startup.sh
|
||||
|
||||
EXPOSE 1080
|
||||
|
||||
ENTRYPOINT ["/bin/sh","/usr/local/bin/startup.sh"]
|
||||
|
||||
Reference in New Issue
Block a user