You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rgb-led-board/Dockerfile

15 lines
507 B
Docker

FROM registry.local/rgbarm64lib:latest as builder
WORKDIR /usr/src/app/rgb
2 years ago
COPY . .
1 year ago
ENV GOPRIVATE=gitea.wagshome.duckdns.org
ENV GONOSUMBDB=gitea.wagshome.duckdns.org
2 years ago
RUN go mod tidy
RUN CGO_ENABLED=1 go build --ldflags '-linkmode external -extldflags=-static'
RUN mkdir -p /usr/src/app/work/
RUN cp /usr/src/app/rgb/rgb /usr/src/app/work/rgb
FROM scratch
COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/
2 years ago
COPY --from=builder /usr/src/app/rgb/mari* /usr/src/app/work/
WORKDIR /usr/src/app/work
11 months ago