Spaces:
Paused
Paused
Download Dockerfile from rr19tech/RetroPocketBaseCMS: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/spaces/rr19tech/RetroPocketBaseCMS/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rr19tech/RetroPocketBaseCMS/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rr19tech/RetroPocketBaseCMS/resolve/main/Dockerfile
608 Bytes
| # Use a lightweight Linux base | |
| FROM alpine:latest | |
| # Install dependencies and PocketBase (adjust version as needed) | |
| ARG PB_VERSION=0.22.8 | |
| RUN apk add --no-cache unzip ca-certificates | |
| ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zip | |
| RUN unzip /tmp/pb.zip -d /pb/ | |
| COPY pb_hooks /pb/pb_hooks | |
| # Expose the mandatory Hugging Face port | |
| EXPOSE 7860 | |
| # Start PocketBase, binding to all interfaces and setting the data directory | |
| CMD ["/pb/pocketbase", "serve", "--http=0.0.0.0:7860", "--dir=/data/pb_data", "--hooksDir=/pb/pb_hooks"] | |