From 4739747f5a61011c5bcccff09040ec541785b51c Mon Sep 17 00:00:00 2001 From: Arc <90333108+lastarc@users.noreply.github.com> Date: Mon, 24 Jun 2024 22:11:03 +0200 Subject: [PATCH] fix docker multiplatform --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 71d5951..229489e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ FROM alpine:latest ARG PB_VERSION=0.22.14 +ARG TARGETARCH RUN apk add --no-cache \ unzip \ ca-certificates -ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zip +ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_${TARGETARCH}.zip /tmp/pb.zip RUN unzip /tmp/pb.zip -d /pb/ COPY ./pb_migrations /pb/pb_migrations