Spaces:
Paused
Paused
File size: 608 Bytes
bc52f3d 505ff78 bc52f3d 35fc4a5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # 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"]
|