Spaces:
Runtime error
Runtime error
Download Dockerfile from Huzaifa1313/hitech-api: direct link, hf CLI and curl.
- Browser
- Download file 350 Bytes
-
https://huggingface.co/spaces/Huzaifa1313/hitech-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Huzaifa1313/hitech-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Huzaifa1313/hitech-api/resolve/main/Dockerfile
350 Bytes
| FROM node:18-slim | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy all code | |
| COPY . . | |
| # Create uploads directory | |
| RUN mkdir -p uploads data | |
| # Environment variables | |
| ENV PORT=7860 | |
| ENV NODE_ENV=production | |
| # Expose port | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["npm", "start"] |