Skip to content

Commit

Permalink
chore: fix unknown in ghcr registry (#2693)
Browse files Browse the repository at this point in the history
Closes #2412
  • Loading branch information
Bidon15 authored Sep 11, 2023
1 parent 6cc54e7 commit 8ca777e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit 8ca777e

Please sign in to comment.