mirror of
https://github.com/sern-handler/pocketbase
synced 2026-06-06 01:16:56 +00:00
feat: initial docker image
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
# inspirado por los españolitos de muchobien/docker-pocketbase! gracias!
|
||||
|
||||
FROM alpine:latest AS download
|
||||
|
||||
ARG VERSION
|
||||
ADD https://github.com/pocketbase/pocketbase/releases/download/v${VERSION}/pocketbase_${VERSION}_linux_amd64.zip /pb.zip
|
||||
RUN unzip /pb.zip && chmod +x /pocketbase
|
||||
|
||||
FROM alpine
|
||||
RUN apk update && apk add --no-cache ca-certificates && rm -rf /var/cache/apk/*
|
||||
COPY --from=download /pocketbase /bin/pocketbase
|
||||
|
||||
VOLUME /data
|
||||
EXPOSE 8090
|
||||
|
||||
# https://www.baeldung.com/linux/difference-ip-address
|
||||
ENTRYPOINT ["/bin/pocketbase", "serve", "--http=0.0.0.0:8090", "--dir=/data"]
|
||||
Reference in New Issue
Block a user