[chore] fix broken buildx (whoops) (#1116)

This commit is contained in:
tobi 2022-11-22 15:09:45 +01:00 committed by GitHub
commit 11cd60883d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 8 deletions

View file

@ -1,12 +1,6 @@
# syntax=docker/dockerfile:1.3
# Dockerfile reference: https://docs.docker.com/engine/reference/builder/
# When using buildx, these variables will be set by the tool:
# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
# However, declaring them as build arguments like this allows them to be set manually with `--build-arg` as well.
ARG BUILDPLATFORM
ARG TARGETPLATFORM
# stage 1: generate up-to-date swagger.yaml to put in the final container
FROM --platform=${BUILDPLATFORM} quay.io/goswagger/swagger:v0.30.0 AS swagger