From 76e0d451aa5973eb4c39b692f727d893f8a9e358 Mon Sep 17 00:00:00 2001 From: Nhu Viet Nguyen Date: Mon, 11 Sep 2023 14:42:05 +0200 Subject: [PATCH] chore: fix unknown in ghcr registry --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1f1705c2f3..bebd61a644 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/golang:1.21-alpine3.18 as builder +FROM --platform=$BUILDPLATFORM docker.io/golang:1.21-alpine3.18 as builder # hadolint ignore=DL3018 RUN apk update && apk add --no-cache \ @@ -15,7 +15,7 @@ COPY . . RUN make build && make cel-key -FROM docker.io/alpine:3.18.3 +FROM --platform=$BUILDPLATFORM docker.io/alpine:3.18.3 # Read here why UID 10001: https://github.com/hexops/dockerfile/blob/main/README.md#do-not-use-a-uid-below-10000 ARG UID=10001 @@ -30,6 +30,8 @@ ENV P2P_NETWORK mocha # hadolint ignore=DL3018 RUN apk update && apk add --no-cache \ bash \ + curl \ + jq \ # Creates a user with $UID and $GID=$UID && adduser ${USER_NAME} \ -D \