Download Dockerfile from AZILS/VS: direct link, hf CLI and curl.
- Browser
- Download file 651 Bytes
-
https://huggingface.co/spaces/AZILS/VS/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AZILS/VS/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AZILS/VS/resolve/main/Dockerfile
651 Bytes
| # Use the official code-server image | |
| FROM codercom/code-server:latest | |
| # Switch to root to install additional packages if needed | |
| USER root | |
| # Optional: Install Python, Node.js, or other tools you need | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| git \ | |
| curl | |
| # Switch back to the 'coder' user for security | |
| USER coder | |
| # Expose port 7860 (Hugging Face's default port) | |
| EXPOSE 7860 | |
| # Start code-server | |
| # We bind to 0.0.0.0 to allow external access | |
| # We point the user data directory to /home/coder to ensure permissions are correct | |
| ENTRYPOINT ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "password", "."] |