mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-05 07:32:55 +00:00
16 lines
298 B
Docker
16 lines
298 B
Docker
FROM golang:alpine
|
|
|
|
RUN apk update && apk add build-base
|
|
|
|
RUN mkdir -p /go/src/diagnostics
|
|
WORKDIR /go/src/diagnostics
|
|
|
|
COPY . /go/src/diagnostics
|
|
|
|
ARG GOARCH
|
|
ARG GOOS
|
|
|
|
RUN go install --ldflags '-extldflags "-fno-PIC"'
|
|
|
|
RUN [ -f /go/bin/*/diagnostics ] && mv /go/bin/*/diagnostics /go/bin/ || true
|