d294a6ba37
Updated go version to 1.13.1 and updated dependency versions in mod file. Updated Dockerfile to use golang 1.13.1 image. Removed GO111MODULE env in Makefile which is no longer necessary. Change-Id: Ib120e8bdfbd3724b72169c4b5ce2cbc7fd9f3ce6
18 lines
422 B
Docker
18 lines
422 B
Docker
ARG GO_IMAGE=docker.io/golang:1.13.1-stretch
|
|
ARG RELEASE_IMAGE=scratch
|
|
FROM ${GO_IMAGE} as builder
|
|
|
|
SHELL [ "/bin/bash", "-cex" ]
|
|
ADD . /usr/src/airshipctl
|
|
WORKDIR /usr/src/airshipctl
|
|
|
|
RUN make get-modules
|
|
|
|
ARG MAKE_TARGET=build
|
|
RUN make ${MAKE_TARGET}
|
|
|
|
FROM ${RELEASE_IMAGE} as release
|
|
COPY --from=builder /usr/src/airshipctl/bin/airshipctl /usr/local/bin/airshipctl
|
|
USER 65534
|
|
ENTRYPOINT [ "/usr/local/bin/airshipctl" ]
|