Files
rgb-led-board/Dockerfile
Nathan 7872195d61
All checks were successful
rgb/pipeline/head This commit looks good
adding resources
2023-01-15 03:22:53 +00:00

21 lines
472 B
Docker

from registry.local/rgbarm64lib:latest as builder
workdir /usr/src/app/rgb
COPY . .
RUN go mod tidy
RUN CGO_ENABLED=1 go build --ldflags '-linkmode external -extldflags=-static'
#RUN go build .
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/mario* /usr/src/app/work/
FROM scratch
COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/
COPY --from=builder /usr/src/app/rgb/mari* /usr/src/app/work/