Files
rgb-led-board/Dockerfile
nathan ce3a6da6f8
Some checks failed
build lightwatch / build (push) Failing after 1m21s
Update 'Dockerfile'
2023-09-03 05:46:52 +00:00

18 lines
494 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/
WORKDIR /usr/src/app/work