Spaces:
Sleeping
Sleeping
Download Dockerfile from veltrixcode/Iot: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/spaces/veltrixcode/Iot/resolve/b22ca5df603c8db2e13997c6a3caba9b4e2eb415/Dockerfile
- Command line
-
hf download hf://spaces/veltrixcode/Iot@b22ca5df603c8db2e13997c6a3caba9b4e2eb415/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/veltrixcode/Iot/resolve/b22ca5df603c8db2e13997c6a3caba9b4e2eb415/Dockerfile
346 Bytes
| FROM node:18-slim | |
| # Create app directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY package.json package-lock.json* ./ | |
| RUN npm ci --omit=dev || npm install --omit=dev | |
| # Bundle app source | |
| COPY . . | |
| # Hugging Face Spaces expect the app to listen on $PORT | |
| ENV PORT=7860 | |
| # Expose the port (for documentation only) | |
| EXPOSE 7860 | |
| CMD ["npm", "start"] | |