Newer
Older
Malte Bauch
committed
ARG BUILDARGS
ARG $GITLAB_PROXY
FROM ${GITLAB_PROXY}golang:$GOLANG_VERSION-alpine AS builder
WORKDIR /gosdn/
RUN apk add build-base
COPY . .
RUN --mount=type=cache,target=/root/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
make build-gosdnc
Malte Bauch
committed
COPY --from=builder /gosdn/artifacts/gosdnc /