From f04e4979999deaeaa326585de15e76e110cf664f Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 28 Jun 2023 11:34:37 +0800 Subject: [PATCH] chore: 1.1.0 --- docker/image/Dockerfile | 3 ++- docker/image/build.sh | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/image/Dockerfile b/docker/image/Dockerfile index 71676529..c40c5557 100644 --- a/docker/image/Dockerfile +++ b/docker/image/Dockerfile @@ -6,7 +6,8 @@ WORKDIR /app/ #RUN npm install pm2 -g --registry=https://registry.npmmirror.com #RUN pm2 install pm2-logrotate ADD ./workspace/certd-server/ /app/ -RUN yarn install --production --registry=https://registry.npmmirror.com +#RUN yarn install --production --registry=https://registry.npmmirror.com +RUN yarn install --production RUN npm run build #CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"] CMD ["npm", "run","start"] diff --git a/docker/image/build.sh b/docker/image/build.sh index 4b38f84d..eb0ea3b3 100755 --- a/docker/image/build.sh +++ b/docker/image/build.sh @@ -32,4 +32,6 @@ mkdir -p $build/workspace/certd-server \cp ./* $build/workspace/certd-server -rf \cp ../certd-client/dist/* $build/workspace/certd-server/public/ -rf - +export TAG=$version +sudo -E docker compose build +sudo -E docker compose push