attempting static compilation
Some checks failed
rgb/pipeline/head There was a failure building this commit
Some checks failed
rgb/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -3,15 +3,15 @@ from registry.local/rgbarm64lib:latest as builder
|
|||||||
workdir /usr/src/app/rgb
|
workdir /usr/src/app/rgb
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go mod tidy
|
RUN go mod tidy
|
||||||
#RUN CGO_ENABLED=1 CC=musl-gcc go build --ldflags 'linkmode external -extldflags "-static"'
|
RUN CGO_ENABLED=1 CC=musl-gcc go build --ldflags '-linkmode external -extldflags=-static'
|
||||||
RUN go build .
|
#RUN go build .
|
||||||
RUN mkdir -p /usr/src/app/work/
|
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/rgb /usr/src/app/work/rgb
|
||||||
RUN cp /usr/src/app/rgb/mario* /usr/src/app/work/
|
RUN cp /usr/src/app/rgb/mario* /usr/src/app/work/
|
||||||
|
|
||||||
#FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
#COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/
|
COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user