m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-19 02:13:41 -05:00

Optimize CI for docker image

This commit is contained in:
Sergio
2025-03-03 10:05:18 +02:00
parent 404c574c2c
commit c4de3961a0
4 changed files with 88 additions and 58 deletions

11
.github/actions/Dockerfile vendored Normal file
View File

@@ -0,0 +1,11 @@
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"]