Spaces:
Runtime error
Runtime error
Download Dockerfile from sardarbipul/work-Update: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/spaces/sardarbipul/work-Update/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sardarbipul/work-Update/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sardarbipul/work-Update/resolve/main/Dockerfile
512 Bytes
| # Use official Node.js 18 LTS as base image | |
| FROM node:18 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json (if exists) | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy source files | |
| COPY . . | |
| # Copy ca.pem (ensure it's included in the image) | |
| COPY ca.pem ./ca.pem | |
| # Build the application (compiles TypeScript and copies ca.pem to dist) | |
| RUN npm run build | |
| # Expose port 3000 (Hugging Face Spaces default) | |
| EXPOSE 3000 | |
| # Start the application | |
| CMD ["npm", "start"] |