Skip to content

Commit 4739747

Browse files
committed
fix docker multiplatform
1 parent e1e2c8c commit 4739747

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
FROM alpine:latest
22

33
ARG PB_VERSION=0.22.14
4+
ARG TARGETARCH
45

56
RUN apk add --no-cache \
67
unzip \
78
ca-certificates
89

9-
ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zip
10+
ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_${TARGETARCH}.zip /tmp/pb.zip
1011
RUN unzip /tmp/pb.zip -d /pb/
1112

1213
COPY ./pb_migrations /pb/pb_migrations

0 commit comments

Comments
 (0)