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:
11
.github/actions/Dockerfile
vendored
Normal file
11
.github/actions/Dockerfile
vendored
Normal 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"]
|
||||
Reference in New Issue
Block a user