Download Dockerfile from lydgs/tinyproxy: direct link, hf CLI and curl.
- Browser
- Download file 574 Bytes
-
https://huggingface.co/spaces/lydgs/tinyproxy/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lydgs/tinyproxy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lydgs/tinyproxy/resolve/main/Dockerfile
574 Bytes
| FROM ubuntu:22.04 | |
| # Set up a new user named "user" with user ID 1000 | |
| RUN useradd -m -u 1000 user | |
| # Switch to the "user" user | |
| USER user | |
| # Set home to the user's home directory | |
| ENV HOME=/home/user \ | |
| FILE_SYNC=$FILE_SYNC\ | |
| PATH=/home/user/.local/bin:$PATH | |
| # Set the working directory to the user's home directory | |
| WORKDIR $HOME/tinyproxy | |
| COPY --chown=user . $HOME/tinyproxy | |
| RUN chmod +x $HOME/tinyproxy/tinyproxy | |
| RUN touch $HOME/tinyproxy/tinyproxy.log | |
| CMD cd $HOME/tinyproxy && ls -lh && pwd && ./tinyproxy -c ./tinyproxy.conf && tail -f ./tinyproxy.log | |
| EXPOSE 8888 |