jiseki commited on
Commit
c85a338
·
verified ·
1 Parent(s): a9c0c29

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM alpine:latest
2
+
3
+ ARG PB_VERSION=0.25.8
4
+
5
+ RUN apk add --no-cache \
6
+ unzip \
7
+ ca-certificates
8
+
9
+ # download and unzip PocketBase
10
+ ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zip
11
+ RUN unzip /tmp/pb.zip -d /pb/
12
+
13
+ # uncomment to copy the local pb_migrations dir into the image
14
+ # COPY ./pb_migrations /pb/pb_migrations
15
+
16
+ # uncomment to copy the local pb_hooks dir into the image
17
+ # COPY ./pb_hooks /pb/pb_hooks
18
+
19
+ EXPOSE 8080
20
+
21
+ # start PocketBase
22
+ CMD ["/pb/pocketbase", "serve", "--http=0.0.0.0:8080"]