diff --git a/server/.github/workflows/test-build-deploy.yml b/server/.github/workflows/test-build-deploy.yml index b0833530a..6ba63da6c 100644 --- a/server/.github/workflows/test-build-deploy.yml +++ b/server/.github/workflows/test-build-deploy.yml @@ -28,7 +28,7 @@ jobs: version: 6.0.2 - name: Install Dependencies - run: pnpm i + run: pnpm ci # configure external dbs - uses: supercharge/mongodb-github-action@1.4.1 diff --git a/server/Dockerfile b/server/Dockerfile index 8fa52f663..6e92b6206 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app COPY --chown=node:node . /app RUN npm install --silent -g pnpm@6 && groupmod -g 1003 node && chown node:node /app USER node -RUN pnpm install --silent --frozen-lockfile && pnpm build && pnpm prune --silent --production && pnpm store prune --silent +RUN pnpm ci --silent --frozen-lockfile && pnpm build && pnpm prune --silent --production && pnpm store prune --silent HEALTHCHECK --interval=15s --timeout=5s CMD curl -f http://localhost:8080/api/v1/status || exit 1 ENV NODE_PATH=js/ CMD ["node", "js/main.js"]