最新的pocketbase 0.37.3版本
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal 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'
|
||||||
Reference in New Issue
Block a user