Download Dockerfile from Lockthewi/api1: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/spaces/Lockthewi/api1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Lockthewi/api1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Lockthewi/api1/resolve/main/Dockerfile
840 Bytes
| # Use a base image with Python and Jupyter Notebook installed | |
| FROM jupyter/scipy-notebook:latest | |
| USER root | |
| RUN apt-get update && \ | |
| apt-get install -y rclone nmap nodejs npm tar zip unzip pipx rar&& \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz | |
| RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz | |
| RUN export PATH=$PATH:/usr/local/go/bin | |
| # Set the working directory in the container | |
| WORKDIR /home/jovyan/work | |
| # Expose the port the notebook runs on | |
| EXPOSE 7860 | |
| # Copy the current directory contents into the container at /home/jovyan/work | |
| COPY . /home/jovyan/work | |
| # Run Jupyter Notebook upon container startup with token authentication enabled | |
| CMD ["jupyter", "notebook", "--ip='*'", "--port=7860", "--no-browser", "--allow-root", "--NotebookApp.token='amma1000'"] | |