Spaces:
Sleeping
Sleeping
Download backend/Dockerfile from Mahmoud7456/MultiUsersSalesSystem: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/spaces/Mahmoud7456/MultiUsersSalesSystem/resolve/hf/backend/Dockerfile
- Command line
-
hf download hf://spaces/Mahmoud7456/MultiUsersSalesSystem@hf/backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Mahmoud7456/MultiUsersSalesSystem/resolve/hf/backend/Dockerfile
450 Bytes
| # Use Node.js LTS version | |
| FROM node:20-alpine | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json first for caching | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install --production | |
| # Copy the rest of your code | |
| COPY . . | |
| # Set environment variable for port (Railway will provide it) | |
| ENV PORT=5000 | |
| # Expose port (Railway uses the container's port) | |
| EXPOSE 5000 | |
| # Command to run your app | |
| CMD ["node", "index.js"] |