Download Dockerfile from subrato1/streamapi: direct link, hf CLI and curl.
- Browser
- Download file 578 Bytes
-
https://huggingface.co/spaces/subrato1/streamapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/subrato1/streamapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/subrato1/streamapi/resolve/main/Dockerfile
578 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| # Install git | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| # Copy package config files | |
| COPY package*.json ./ | |
| # Install all dependencies (production & development for compilation) | |
| RUN npm install | |
| # Copy full source | |
| COPY . . | |
| # Build application (generates /dist and /dist/server.cjs) | |
| RUN npm run build | |
| # Configure default directory permissions | |
| RUN mkdir -p /app/data && chmod -R 777 /app/data | |
| # Expose Space port | |
| EXPOSE 7860 | |
| ENV PORT=7860 | |
| ENV NODE_ENV=production | |
| # Start container | |
| CMD ["npm", "run", "start"] | |