Download Dockerfile from txtorg/code: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/spaces/txtorg/code/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/txtorg/code/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/txtorg/code/resolve/main/Dockerfile
379 Bytes
| # Use official Node.js image | |
| FROM node:18 | |
| # Set working directory | |
| WORKDIR /app | |
| RUN npm install express | |
| # Copy the rest of the app files | |
| COPY . . | |
| # Ensure codes.json exists and set proper permissions | |
| RUN touch codes.json && echo '{}' > codes.json && chmod 666 codes.json amounts2.json amounts.json | |
| # Expose port 3000 | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["node", "server.js"] | |