Skip to content

Commit

Permalink
fix architecture for docker builds
Browse files Browse the repository at this point in the history
it seems that specifing the platform arg is not needed / incorrect for github actions: docker/build-push-action#668 (comment)

resolves #1287
  • Loading branch information
nickysemenza committed Apr 28, 2023
1 parent 908df50 commit 5f34df7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
@@ -1,4 +1,8 @@
FROM --platform=${BUILDPLATFORM} golang:1.20
FROM golang:1.20

ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"

LABEL org.opencontainers.image.source https://github.com/cloudflare/cfssl
LABEL org.opencontainers.image.description "Cloudflare's PKI toolkit"
Expand Down

0 comments on commit 5f34df7

Please sign in to comment.