Files
rgb-led-board/Dockerfile
Nathan 4b6762ab51
Some checks failed
rgb/pipeline/head There was a failure building this commit
attempting static compilation
2023-01-14 20:10:36 +00:00

21 lines
427 B
Docker

from registry.local/rgbarm64lib:latest as builder
workdir /usr/src/app/rgb
COPY . .
RUN go mod tidy
RUN CGO_ENABLED=1 CC=musl-gcc 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 alpine:latest
COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/