mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-16 04:01:16 +00:00
Make an alpine base image for C and Go builds. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
14 lines
313 B
Docker
14 lines
313 B
Docker
FROM mobylinux/alpine-build-go:f87b7d1c1cdec779ed602bfa5eaaeb94896d612c
|
|
|
|
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
|