mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-01 22:54:20 +01:00
a87aa4478e
* bump up version to 1.10.19 upgrade golang to 1.22.5 Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * fix: add golang Dockerfile to build goharbor/golang image Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * change "go get" to "go install" as it requires in golang:1.22 Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * fix: go install golint Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * fix: update go version in build-package.yml Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * fix: upgrade golang to 1.22.5 to build clair and clair-adapter Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * fix: resolve the permission denied issue Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * debug: remove DNS setting for docker v20 Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * fix "groupadd: group 'postgres' already exists" error when building db base Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * bump up to photon:5.0 mainly to resolve /lib/libc.so.6: version `GLIBC_2.34' not found use mariadb-18.2.6.tgz as the old one is 404 Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * fix: use goharbor/golang 1.21.12 Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * fix: update golang version in echo log message when building clair binary and clair adapter Signed-off-by: Shengwen Yu <yshengwen@vmware.com> * fix: update chart files URL due to 404 Signed-off-by: Shengwen Yu <yshengwen@vmware.com> --------- Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
11 lines
251 B
Docker
11 lines
251 B
Docker
FROM goharbor/golang:1.21.12
|
|
|
|
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
|
ENV BUILDTAGS include_oss include_gcs
|
|
ENV GO111MODULE auto
|
|
|
|
WORKDIR $DISTRIBUTION_DIR
|
|
COPY . $DISTRIBUTION_DIR
|
|
|
|
RUN CGO_ENABLED=0 make PREFIX=/go clean binaries
|