mirror of
https://gh-proxy.com/https://github.com/docker/build-push-action
synced 2025-12-13 01:17:42 +08:00
11 lines
301 B
Docker
11 lines
301 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM --platform=$BUILDPLATFORM golang:alpine AS build
|
|
RUN apk add --no-cache ca-certificates go 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
|