Download Dockerfile from hankchin/b2tools: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/hankchin/b2tools/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/hankchin/b2tools/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/hankchin/b2tools/resolve/main/Dockerfile
349 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| # Copy the bundled application file and public folder | |
| COPY app.js . | |
| COPY public ./public | |
| # Default environment variables | |
| ENV PORT=7860 | |
| ENV NODE_ENV=production | |
| # Make the application executable | |
| RUN chmod +x app.js | |
| # Expose the port that the application uses | |
| EXPOSE 7860 | |
| # Start the application directly | |
| CMD ["./app.js"] |