Skip to content

Commit

Permalink
feat: pocketbase multi platform image dockerfile added
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Sep 18, 2024
1 parent d763998 commit 181b6a5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions build/pocketbase/0.22.13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ FROM alpine:latest

ARG PB_VERSION=0.22.13

ARG TARGETARCH

RUN apk add --no-cache \
unzip \
ca-certificates
ca-certificates \
wget

# Download and unzip PocketBase based on architecture
RUN wget -q -O /tmp/pb.zip https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_${TARGETARCH}.zip \
&& unzip /tmp/pb.zip -d /pb/ \
&& rm /tmp/pb.zip

# download and unzip PocketBase
ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zip
RUN unzip /tmp/pb.zip -d /pb/
EXPOSE 8080

# start PocketBase
CMD ["/pb/pocketbase", "serve", "--http=0.0.0.0:8080"]

0 comments on commit 181b6a5

Please sign in to comment.