Download Dockerfile from Xlnk/linux: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/Xlnk/linux/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Xlnk/linux/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Xlnk/linux/resolve/main/Dockerfile
549 Bytes
| # Use the official linuxserver code-server image | |
| FROM linuxserver/code-server:latest | |
| # Set working directory | |
| WORKDIR /config # linuxserver uses /config for settings and projects | |
| # Expose HF Spaces port | |
| EXPOSE 7860 | |
| # Environment variables | |
| ENV PUID=1000 # default user id | |
| ENV PGID=1000 # default group id | |
| ENV TZ=UTC # timezone | |
| ENV PASSWORD="" # empty password for no-auth (HF Spaces) | |
| # Start code-server binding to HF Spaces port | |
| CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "/config"] |