-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (25 loc) · 988 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM dockage/alpine:3.11-openrc
RUN apk add --update openvpn dropbear openssh-client expect build-base autoconf nodejs npm && \
wget https://www.kraxel.org/releases/webfs/webfs-1.21.tar.gz && tar xvzf webfs-1.21.tar.gz && \
cd webfs-1.21 && \
make && make install && \
apk del build-base autoconf
COPY ./hpts.rc /etc/init.d/hpts
COPY ./openvpn.rc /etc/init.d/openvpn-client
COPY ./socks5.rc /etc/init.d/socks5
COPY ./awebfsd.rc /etc/init.d/awebfsd
COPY ./public /var/www
COPY ./mime.types /etc/mime.types
RUN chmod +x /etc/init.d/* && \
ssh-keygen -f /root/.ssh/id_ecdsa -t ecdsa -N '' && \
cat ~/.ssh/id_ecdsa.pub >> ~/.ssh/authorized_keys && \
chmod og-wx ~/.ssh/authorized_keys && \
rc-update add openvpn-client && \
rc-update add dropbear && \
rc-update add socks5 && \
rc-update add awebfsd
COPY ./target.ovpn /openvpn/remote.ovpn
COPY ./target-pass.txt /openvpn/remote-pass.txt
EXPOSE 22
EXPOSE 1337
EXPOSE 1338