Untitled

mail@pastecode.io avatar
unknown
dockerfile
2 years ago
1.1 kB
16
Indexable
FROM hwdsl2/ipsec-vpn-server:latest
# switch repo to edge
RUN echo -e "http://dl-3.alpinelinux.org/alpine/edge/main\nhttp://dl-3.alpinelinux.org/alpine/edge/community" > /etc/ap>#RUN echo "http://dl-3.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories

# install packages
RUN apk update && apk upgrade && \
        apk add --no-cache tor i2pd git make automake autoconf go
RUN git clone https://github.com/tinyproxy/tinyproxy.git
RUN cd tinyproxy && ./autogen.sh && make && make install && make clean && cd .. && rm -rf tinyproxy
RUN git clone --branch netstack --single-branch https://github.com/yggdrasil-network/yggdrasil-go.git
RUN cd yggdrasil-go && go build -o ../yggstack cmd/yggstack/main.go && go clean -cache
RUN cd .. && rm -rf /yggdrasil-go && apk del git make automake autoconf go

# set configs
COPY ./tinyproxy.conf /etc/tinyproxy/tinyproxy.conf
COPY ./yggdrasil.conf /etc/yggdrasil.conf
COPY ./i2pd.conf /etc/i2pd/i2pd.conf
RUN cp /etc/tor/torrc.sample /etc/tor/torrc


# run overlays
COPY ./run_proxy.sh /opt/src/run_proxy.sh
RUN chmod 755 /opt/src/run_proxy.sh
CMD ["/opt/src/run_proxy.sh"]