mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 10:38:00 +01:00
469473b31c
This commit is to build a regsitry bases on v2.7.1 code and introduces an fix on issue #2819, this is a P0 bug on v2.7.1 which causes GCS doesn't work well on v2.7.1 For more details, refer to https://github.com/docker/distribution/pull/2821 Signed-off-by: wang yan <wangyan@vmware.com>
10 lines
218 B
Docker
10 lines
218 B
Docker
FROM golang:1.11
|
|
|
|
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
|
ENV BUILDTAGS include_oss include_gcs
|
|
|
|
WORKDIR $DISTRIBUTION_DIR
|
|
COPY . $DISTRIBUTION_DIR
|
|
|
|
RUN CGO_ENABLED=0 make PREFIX=/go clean binaries
|