mirror of
https://github.com/distribution/distribution.git
synced 2025-09-02 15:36:10 +00:00
Merge pull request #2281 from sixeyed/patch-1
Add ARGs for cross-compiling
This commit is contained in:
@@ -3,6 +3,9 @@ FROM golang:1.8-alpine
|
|||||||
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
||||||
ENV DOCKER_BUILDTAGS include_oss include_gcs
|
ENV DOCKER_BUILDTAGS include_oss include_gcs
|
||||||
|
|
||||||
|
ARG GOOS=linux
|
||||||
|
ARG GOARCH=amd64
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add --no-cache make git
|
&& apk add --no-cache make git
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user