Public Access
1
0
mirror of https://github.com/docker/build-push-action.git synced 2026-01-28 07:23:19 +03:00
Files
build-push-action/test/multi.Dockerfile
2025-11-19 19:31:19 +01:00

11 lines
305 B
Docker

# syntax=docker/dockerfile:1
FROM --platform=$BUILDPLATFORM golang:alpine AS build
RUN apk add --no-cache ca-certificates golang nodejs rust cargo
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log
FROM alpine
COPY --from=build /log /log