Download Dockerfile from dvc890/s2w: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/spaces/dvc890/s2w/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dvc890/s2w/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dvc890/s2w/resolve/main/Dockerfile
345 Bytes
| # Use Node.js LTS | |
| FROM node:18-bullseye-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy source code | |
| COPY . . | |
| # Expose port (Hugging Face defaut is 7860) | |
| EXPOSE 7860 | |
| # Define environment variables | |
| ENV PORT=7860 | |
| # Start the application | |
| CMD ["npm", "start"] | |