Spaces:
Runtime error
Runtime error
Download Dockerfile from gnosticdev/deepsite: direct link, hf CLI and curl.
- Browser
- Download file 525 Bytes
-
https://huggingface.co/spaces/gnosticdev/deepsite/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/gnosticdev/deepsite/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/gnosticdev/deepsite/resolve/main/Dockerfile
525 Bytes
| # Dockerfile | |
| # Use an official Node.js runtime as the base image | |
| FROM node:22.1.0 | |
| USER root | |
| RUN apt-get update | |
| USER 1000 | |
| WORKDIR /usr/src/app | |
| # Copy package.json and package-lock.json to the container | |
| COPY --chown=1000 package.json package-lock.json ./ | |
| # Copy the rest of the application files to the container | |
| COPY --chown=1000 . . | |
| RUN npm install | |
| RUN npm run build | |
| # --- LOS CAMBIOS ESTÁN AQUÍ ABAJO --- | |
| # Forzar el puerto que exige Hugging Face | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Start the application | |
| CMD ["npm", "start"] |