Spaces:
Sleeping
Sleeping
Download Dockerfile from Pepguy/paystack-callback: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/spaces/Pepguy/paystack-callback/resolve/57c09cf3a8a7ce9988fb7b411208d48da17f83bf/Dockerfile
- Command line
-
hf download hf://spaces/Pepguy/paystack-callback@57c09cf3a8a7ce9988fb7b411208d48da17f83bf/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Pepguy/paystack-callback/resolve/57c09cf3a8a7ce9988fb7b411208d48da17f83bf/Dockerfile
570 Bytes
| FROM node:19 | |
| # Install ffmpeg | |
| # RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/* | |
| # Create a non-root user with | |
| RUN useradd -m -u 2000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package files and install dependencies | |
| COPY --chown=user package*.json ./ | |
| RUN npm install | |
| # Copy the rest of the application source | |
| COPY --chown=user . /app | |
| # Expose the port if needed (optional, depending on the hosting environment) | |
| EXPOSE 7860 | |
| # Run the Node.js application | |
| CMD ["node", "app.js"] | |