This repository has been archived on 2025-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
build-push-action/test/multi.Dockerfile

10 lines
241 B
Docker
Raw Normal View History

2025-06-05 13:09:30 +08:00
# syntax=docker/dockerfile:1
FROM --platform=$BUILDPLATFORM golang:alpine AS build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log
FROM alpine
COPY --from=build /log /log