From c290d3c0a59eecbaa24cc617562406e5eea31218 Mon Sep 17 00:00:00 2001 From: titor Date: Thu, 23 Apr 2026 04:11:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E6=96=B0=E7=9A=84pocketbase=200.37.3?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 20 ++++++++++++++++++++ README.md | 10 ++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a008ff5 --- /dev/null +++ b/Dockerfile @@ -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' \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..fc9f897 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# README + +> 基于 alpine制作,添加了清华源。 + +现在的 *Pocketbase* 版本是 `0.37.3`。 + +## 镜像信息 +- 默认端口为:`8090`。 +- 默认数据地址:`/pb_data` +