diff --git a/cmd/api/deploy.Dockerfile b/cmd/api/deploy.Dockerfile index 8e005578f..e97a97cb3 100644 --- a/cmd/api/deploy.Dockerfile +++ b/cmd/api/deploy.Dockerfile @@ -4,7 +4,7 @@ FROM golang as build ENV GO111MODULE=on ENV GOPROXY=https://goproxy.cn,direct -COPY ../* ./Open-IM-Server +COPY ../* /Open-IM-Server ENV WORKDIR /Open-IM-Server/cmd/api RUN apt-get update && apt-get install apt-transport-https && apt-get install procps\ diff --git a/script/build_push_k8s_images.sh b/script/build_push_k8s_images.sh index a1b7f60d8..efd092c19 100644 --- a/script/build_push_k8s_images.sh +++ b/script/build_push_k8s_images.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash version=errcode repository=${1} +if [ -z ${repository} ] +exit 0 +fi set +e echo "repository: ${repository}"