# 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"]