mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
aa55fcfce7
Signed-off-by: He Weiwei <hweiwei@vmware.com>
14 lines
513 B
Docker
14 lines
513 B
Docker
ARG GOLANG
|
|
FROM ${GOLANG}
|
|
|
|
ARG MOCKERY_VERSION
|
|
|
|
# https://github.com/docker-library/golang/issues/225
|
|
ENV XDG_CACHE_HOME /tmp
|
|
|
|
RUN mkdir -p /tmp/mockery-${MOCKERY_VERSION} && \
|
|
curl -fsSL https://github.com/vektra/mockery/releases/download/${MOCKERY_VERSION}/mockery_${MOCKERY_VERSION#v}_Linux_x86_64.tar.gz | tar -xz -C /tmp/mockery-${MOCKERY_VERSION} && \
|
|
mv /tmp/mockery-${MOCKERY_VERSION}/mockery /usr/local/bin && \
|
|
chmod +x /usr/local/bin/mockery && \
|
|
rm -rf /tmp/mockery-${MOCKERY_VERSION}
|