Download Dockerfile from Easyfly/Test: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/spaces/Easyfly/Test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Easyfly/Test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Easyfly/Test/resolve/main/Dockerfile
667 Bytes
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # ---- Base packages ---- | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| git \ | |
| ca-certificates \ | |
| sudo \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ---- Install code-server (fixed version, no redirect issues) ---- | |
| RUN curl -fL https://github.com/coder/code-server/releases/download/v4.89.1/code-server_4.89.1_amd64.deb -o code-server.deb \ | |
| && apt-get update \ | |
| && apt-get install -y ./code-server.deb \ | |
| && rm code-server.deb \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /workspace | |
| EXPOSE 7860 | |
| CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none"] |