diff --git a/Dockerfile b/Dockerfile index f10ec3c5ef..3f3da6ad07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /tmp COPY . /tmp RUN npx npm-cli-adduser --username test --password test -e test@nocobase.com -r $VERDACCIO_URL RUN cd /tmp && \ - NEWVERSION="$(cat lerna.json | jq '.version' | tr -d '"').$(date +'+%Y%m%d%H%M%S')" \ + NEWVERSION="$(cat lerna.json | jq '.version' | tr -d '"').$(date +'%Y%m%d%H%M%S')" \ && tmp=$(mktemp) \ && jq ".version = \"${NEWVERSION}\"" lerna.json > "$tmp" && mv "$tmp" lerna.json RUN yarn install && yarn build diff --git a/Dockerfile.acr b/Dockerfile.acr index 0c61e5c11c..085caa9312 100644 --- a/Dockerfile.acr +++ b/Dockerfile.acr @@ -7,7 +7,7 @@ WORKDIR /tmp COPY . /tmp RUN npx npm-cli-adduser --username test --password test -e test@nocobase.com -r $VERDACCIO_URL RUN cd /tmp && \ - NEWVERSION="$(cat lerna.json | jq '.version' | tr -d '"').$(date +'+%Y%m%d%H%M%S')" \ + NEWVERSION="$(cat lerna.json | jq '.version' | tr -d '"').$(date +'%Y%m%d%H%M%S')" \ && tmp=$(mktemp) \ && jq ".version = \"${NEWVERSION}\"" lerna.json > "$tmp" && mv "$tmp" lerna.json RUN yarn install && yarn nocobase install && yarn pm add graph-collection-manager && yarn build