containers-pocketbase/Dockerfile

22 lines
678 B
Text
Raw Normal View History

2023-09-28 14:30:48 +00:00
ARG ALPINE_VERSION=3.18.3
FROM alpine:${ALPINE_VERSION} AS build
MAINTAINER "nulo <nulo@sutty.nl>"
ARG PB_VERSION=0.18.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/
FROM gitea.nulo.in/sutty/sutty:${ALPINE_VERSION}
MAINTAINER "nulo <nulo@sutty.nl>"
COPY --from=build /pb/pocketbase /usr/local/bin/pocketbase
2023-09-28 15:14:48 +00:00
COPY 1687801090_sutty_initial_admin.js /pb/pb_migrations/
2023-09-28 14:30:48 +00:00
WORKDIR /pb
VOLUME /pb/pb_data
VOLUME /pb/pb_migrations
2023-09-28 15:14:48 +00:00
CMD ["pocketbase", "serve", "--http=0.0.0.0:8080", "--automigrate"]
2023-09-28 14:30:48 +00:00
EXPOSE 8080