working Dockerfile green ball

This commit is contained in:
nathan wagner
2022-07-20 12:59:23 +00:00
parent c84538ee59
commit e0c0fd420f
2 changed files with 6 additions and 4 deletions

View File

@@ -3,9 +3,11 @@ 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
FROM alpine:latest
#FROM alpine:latest
COPY --from=builder /usr/src/app/work/rgb /rgb
#COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/