From e41c50d46147bf7e7dbf18e40a79e6d551cf997b Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 16 Jun 2023 11:28:49 +0800 Subject: [PATCH] docker file --- cmd/api/deploy.Dockerfile | 2 +- script/build_push_k8s_images.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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}"