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