最新的pocketbase 0.37.3版本

This commit is contained in:
2026-04-23 04:11:07 +08:00
commit c290d3c0a5
2 changed files with 30 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM alpine
ENV GithubProxyHost=https://hk.gh-proxy.org/
ENV PocketbaseUrl=https://github.com/pocketbase/pocketbase/releases/download/v0.37.3/pocketbase_0.37.3_linux_amd64.zip
ENV PORT=8090
ENV DATA_DIR=/pb_data
WORKDIR /root/
RUN sed -i 's#https\?://dl-cdn.alpinelinux.org/alpine#https://mirrors.tuna.tsinghua.edu.cn/alpine#g' /etc/apk/repositories && \
apk update && \
apk add wget && \
wget ${GithubProxyHost}${PocketbaseUrl} && \
unzip pocketbase*.zip && \
rm pocketbase*.zip
EXPOSE ${PORT}
VOLUME [ ${DATA_DIR} ]
CMD sh -c './pocketbase serve --dev --http=0.0.0.0:$PORT --dir=$DATA_DIR'