Download Dockerfile from Sad44587/PyCoder: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/Sad44587/PyCoder/resolve/fda98aaf99e0c93d5cd92b08023bcfbe34c2db98/Dockerfile
- Command line
-
hf download hf://spaces/Sad44587/PyCoder@fda98aaf99e0c93d5cd92b08023bcfbe34c2db98/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Sad44587/PyCoder/resolve/fda98aaf99e0c93d5cd92b08023bcfbe34c2db98/Dockerfile
438 Bytes
| # Use Node 22 as the base image | |
| FROM node:22-alpine | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json (if you have one) | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Build the app | |
| RUN npm run build | |
| # Expose the port your React app runs on | |
| EXPOSE 7860 | |
| # Command to run the application | |
| CMD ["npm", "run", "start"] |