Spaces:
Paused
Paused
Download Dockerfile from TomatoFull/Jsni299j: direct link, hf CLI and curl.
- Browser
- Download file 670 Bytes
-
https://huggingface.co/spaces/TomatoFull/Jsni299j/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TomatoFull/Jsni299j/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TomatoFull/Jsni299j/resolve/main/Dockerfile
670 Bytes
| FROM ubuntu:latest | |
| RUN apt-get update && \ | |
| apt-get install -y software-properties-common && \ | |
| apt-add-repository ppa:i2p-maintainers/i2p && \ | |
| apt-get update && \ | |
| apt-get install -y git golang-go build-essential i2p socat | |
| RUN mkdir -p /app/t | |
| WORKDIR /app | |
| RUN git clone https://git.zx2c4.com/wireguard-go ./* | |
| RUN cp -r ./t/* . && \ | |
| go build -o /usr/local/bin/wireguard-go | |
| COPY wg0.conf.template /app/wg0.conf.template | |
| COPY entrypoint.sh /app/entrypoint.sh | |
| RUN chmod +x /app/entrypoint.sh | |
| RUN chmod -R 777 /app | |
| RUN chmod 777 /app/entrypoint.sh | |
| EXPOSE 57777/udp | |
| EXPOSE 7860/tcp | |
| RUN useradd -m appuser | |
| USER appuser | |
| CMD ["/app/entrypoint.sh"] |