From ab572ab936218ffd7a5b6ee5564aed8aa8fbd963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Sun, 12 May 2024 08:37:23 +0200 Subject: [PATCH] chore(migrations): update prod Dockerfile --- build/docker/dcbot-migrations/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/docker/dcbot-migrations/Dockerfile b/build/docker/dcbot-migrations/Dockerfile index dd6733b..2e833e7 100644 --- a/build/docker/dcbot-migrations/Dockerfile +++ b/build/docker/dcbot-migrations/Dockerfile @@ -6,8 +6,11 @@ RUN apk --no-cache add curl ARG TARGETOS ARG TARGETARCH +ARG ARCH -RUN curl --silent --show-error --location --fail --location --output /usr/bin/goose "https://github.com/pressly/goose/releases/download/v3.20.0/goose_${TARGETOS}_${TARGETARCH}" && \ +RUN if [ "$TARGETARCH" = "amd64" ]; then ARCH="x86_64 "; fi && \ + if [ "$TARGETARCH" = "arm64" ]; then ARCH="arm64 "; fi && \ + curl --silent --show-error --location --fail --location --output /usr/bin/goose "https://github.com/pressly/goose/releases/download/v3.20.0/goose_${TARGETOS}_${ARCH}" && \ chmod +x /usr/bin/goose COPY ./migrations .