containers-pocketbase/Dockerfile

21 lines
618 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
WORKDIR /pb
VOLUME /pb/pb_data
VOLUME /pb/pb_migrations
CMD ["/usr/local/bin/pocketbase", "serve", "--http=0.0.0.0:8080"]
EXPOSE 8080