-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
27 lines (19 loc) · 845 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM alpine:latest
ARG PB_VERSION=0.22.13
RUN apk add --no-cache \
unzip \
ca-certificates
# download and unzip PocketBase
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/
# uncomment to copy the local pb_migrations dir into the image
# COPY ./pb_migrations /cloud/storage/pb_migrations
# uncomment to copy the local pb_hooks dir into the image
# COPY ./pb_hooks /cloud/storage/pb_hooks
# uncomment to copy the local pb_public dir into the image
# COPY ./pb_public /cloud/storage/pb_public
ENV HOST 0.0.0.0
ENV PORT 8080
# start PocketBase
EXPOSE 8080
CMD ["/pb/pocketbase", "serve", "--http=0.0.0.0:8080", "--dir=/cloud/storage/pb_data", "--publicDir=/cloud/storage/pb_public", "--hooksDir=/cloud/storage/pb_hooks"]