Initial commit
This commit is contained in:
26
lifemetrics-server/pb/Dockerfile
Executable file
26
lifemetrics-server/pb/Dockerfile
Executable file
@@ -0,0 +1,26 @@
|
||||
FROM alpine:latest
|
||||
ARG PB_VERSION=0.28.4
|
||||
RUN apk --no-cache add curl
|
||||
RUN adduser -s /bin/bash -D pocketbase
|
||||
|
||||
USER pocketbase
|
||||
|
||||
WORKDIR /home/pocketbase
|
||||
RUN curl -LJ "https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip" -o pb.zip
|
||||
RUN unzip pb
|
||||
RUN rm pb.zip
|
||||
|
||||
|
||||
RUN mkdir pb_hooks
|
||||
RUN mkdir pb_public
|
||||
RUN mkdir pb_data
|
||||
RUN mkdir pb_data_default
|
||||
RUN mkdir pb_migrations
|
||||
|
||||
EXPOSE 8090
|
||||
|
||||
COPY --chown=pocketbase --chmod=700 ./pb_migrations/ ./pb_migrations
|
||||
COPY --chown=pocketbase --chmod=700 ./pb_hooks/ ./pb_hooks
|
||||
COPY --chown=pocketbase --chmod=700 ./initialize.sh .
|
||||
|
||||
ENTRYPOINT [ "./initialize.sh" ]
|
||||
Reference in New Issue
Block a user