# Minimal pattern from PocketBase's own docs (pocketbase.io/docs/going-to-production) - # no official image exists, so the pinned binary is downloaded directly. Migrations and # hooks are plain JS files PocketBase loads itself on startup - no separate build step. FROM alpine:latest ARG PB_VERSION=0.40.5 RUN apk add --no-cache unzip ca-certificates WORKDIR /pb 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_migrations /pb/pb_migrations COPY pb_hooks /pb/pb_hooks EXPOSE 8080 CMD ["./pocketbase", "serve", "--http=0.0.0.0:8080"]