Download Dockerfile from licika/asdds: direct link, hf CLI and curl.
- Browser
- Download file 817 Bytes
-
https://huggingface.co/spaces/licika/asdds/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/licika/asdds/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/licika/asdds/resolve/main/Dockerfile
817 Bytes
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PORT=7860 | |
| ENV PASSWORD=123 | |
| # Dependencias básicas | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| wget \ | |
| git \ | |
| sudo \ | |
| ca-certificates \ | |
| gnupg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Instalar Node.js (requerido por code-server extensiones) | |
| RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | |
| && apt-get install -y nodejs | |
| # Instalar code-server | |
| RUN curl -fsSL https://code-server.dev/install.sh | sh | |
| # Crear usuario no root (recomendado en Hugging Face Spaces) | |
| RUN useradd -m vscode && echo "vscode ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
| USER vscode | |
| WORKDIR /home/vscode | |
| # Exponer puerto de HF Spaces | |
| EXPOSE 7860 | |
| # Lanzar code-server | |
| CMD ["code-server", "--bind-addr", "0.0.0.0:7860", ".", "--auth", "password"] |