mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-19 10:23:42 -05:00
11 lines
188 B
Docker
11 lines
188 B
Docker
FROM --platform=$BUILDPLATFORM alpine AS builder
|
|
|
|
ARG TARGETARCH
|
|
ARG TARGETOS
|
|
|
|
COPY . /
|
|
RUN mv cup-$TARGETOS-$TARGETARCH cup
|
|
|
|
FROM scratch
|
|
COPY --from=builder /cup /cup
|
|
ENTRYPOINT ["/cup"] |