alpine instead of scratch
All checks were successful
rgb/pipeline/head This commit looks good

This commit is contained in:
Nathan
2023-01-15 03:36:33 +00:00
parent 7872195d61
commit 89a9e009be

View File

@@ -1,6 +1,6 @@
from registry.local/rgbarm64lib:latest as builder FROM registry.local/rgbarm64lib:latest as builder
workdir /usr/src/app/rgb WORKDIR /usr/src/app/rgb
COPY . . COPY . .
RUN go mod tidy RUN go mod tidy
RUN CGO_ENABLED=1 go build --ldflags '-linkmode external -extldflags=-static' RUN CGO_ENABLED=1 go build --ldflags '-linkmode external -extldflags=-static'
@@ -9,7 +9,7 @@ RUN mkdir -p /usr/src/app/work/
RUN cp /usr/src/app/rgb/rgb /usr/src/app/work/rgb RUN cp /usr/src/app/rgb/rgb /usr/src/app/work/rgb
#RUN cp /usr/src/app/rgb/mario* /usr/src/app/work/ #RUN cp /usr/src/app/rgb/mario* /usr/src/app/work/
FROM scratch FROM alpine
COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/ COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/
COPY --from=builder /usr/src/app/rgb/mari* /usr/src/app/work/ COPY --from=builder /usr/src/app/rgb/mari* /usr/src/app/work/