This commit is contained in:
@ -54,9 +54,9 @@ RUN --mount=type=cache,target=/build mkdir -p /output && \
|
||||
find /build -type f -executable -exec cp {} /output/${PROJECT} \;
|
||||
|
||||
# Final stage that only contains the binary
|
||||
FROM alpine:latest AS project
|
||||
FROM scratch AS project
|
||||
|
||||
ARG PROJECT
|
||||
|
||||
# Copy the actual binary from the regular directory
|
||||
COPY --from=builder /output/ /output/
|
||||
COPY --from=builder /output/${PROJECT} /${PROJECT}
|
||||
|
Reference in New Issue
Block a user