web/api (sha-d23c9b9)

Published 2026-06-03 16:23:39 +02:00 by patrick

Installation

docker pull code.khr.pt/patrick/web/api:sha-d23c9b9
sha256:5a2d8fe5d740ca86c787c46f5b42c4d771ee31dbbd553a9af8b7f7dca77c15fb

About this package

PocketBase server with hooks and migrations baked in.

Image layers

ADD alpine-minirootfs-3.21.7-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ARG PB_VERSION=0.25.9
ARG TARGETARCH=amd64
RUN |2 PB_VERSION=0.25.9 TARGETARCH=amd64 /bin/sh -c apk add --no-cache ca-certificates unzip # buildkit
ADD https://github.com/pocketbase/pocketbase/releases/download/v0.25.9/pocketbase_0.25.9_linux_amd64.zip /tmp/pb.zip # buildkit
RUN |2 PB_VERSION=0.25.9 TARGETARCH=amd64 /bin/sh -c unzip /tmp/pb.zip -d /pb/ && rm /tmp/pb.zip # buildkit
COPY pb_hooks/ /pb/pb_hooks/ # buildkit
COPY pb_migrations/ /pb/pb_migrations/ # buildkit
RUN |2 PB_VERSION=0.25.9 TARGETARCH=amd64 /bin/sh -c addgroup -S pb && adduser -S -G pb -H -D pb && mkdir -p /pb/pb_data && chown -R pb:pb /pb # buildkit
USER pb
EXPOSE [8090/tcp]
VOLUME [/pb/pb_data]
CMD ["/pb/pocketbase" "serve" "--http=0.0.0.0:8090" "--dir=/pb/pb_data" "--migrationsDir=/pb/pb_migrations" "--hooksDir=/pb/pb_hooks"]

Labels

Key Value
org.opencontainers.image.created 2026-06-03T14:23:29.822Z
org.opencontainers.image.description PocketBase server with hooks and migrations baked in.
org.opencontainers.image.licenses
org.opencontainers.image.revision d23c9b9de415201737cbc34df9fb92590a37c036
org.opencontainers.image.source https://code.khr.pt/patrick/mono
org.opencontainers.image.title PocketBase backend
org.opencontainers.image.url https://code.khr.pt/patrick/mono
org.opencontainers.image.version latest
Details
Container
2026-06-03 16:23:39 +02:00
1
OCI / Docker
linux/amd64
46 MiB
Versions (17) View all
latest 2026-06-08
sha-c91375b 2026-06-08
buildcache 2026-06-08
sha-d23c9b9 2026-06-03
sha-9bc4aa2 2026-05-20