Spaces:
Paused
Paused
Download Dockerfile from Service-Xi/FedEX4: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/spaces/Service-Xi/FedEX4/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Service-Xi/FedEX4/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Service-Xi/FedEX4/resolve/main/Dockerfile
592 Bytes
| FROM node:18-alpine | |
| # Install git | |
| RUN apk add --no-cache git | |
| # Clone repo | |
| RUN git clone https://github.com/kingdavid103/fedex1.git /app | |
| # Set working directory | |
| WORKDIR /app | |
| # Install dependencies | |
| RUN npm install | |
| # Create uploads & products.json inside /app with correct permissions | |
| RUN mkdir -p /app/uploads && \ | |
| touch /app/products.json && \ | |
| chown -R node:node /app && \ | |
| chmod -R 755 /app/uploads && \ | |
| chmod 644 /app/products.json | |
| # Switch to non-root user | |
| USER node | |
| # Environment variables | |
| ENV PORT=7860 | |
| ENV NODE_ENV=production | |
| EXPOSE 7860 | |
| CMD ["node", "server.js"] |