mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 20:02:24 -05:00
[docs] Document non-buildx cross compilation for docker image (#1115)
* Enable / document cross compilation for docker image * remove sudo * explain whats up with BUILDPLATFORM/TARGETPLATFORM
This commit is contained in:
parent
f88cb3aebc
commit
6d43319fe1
2 changed files with 17 additions and 2 deletions
|
|
@ -1,6 +1,12 @@
|
|||
# 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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue