diff --git a/docker/api/Dockerfile b/docker/api/Dockerfile index 406fed30829b84..2b08aa04568344 100644 --- a/docker/api/Dockerfile +++ b/docker/api/Dockerfile @@ -52,7 +52,6 @@ RUN pnpm install --prod --ignore-scripts -F=shared -F=api --frozen-lockfile RUN cd api && npx prisma@$(jq -r '.devDependencies.prisma' < package.json) generate FROM node:20-bookworm -RUN npm i -g pm2@4 USER node WORKDIR /home/node/fcc COPY --from=builder --chown=node:node /home/node/build/api/dist/ ./ @@ -63,4 +62,4 @@ COPY --from=deps --chown=node:node /home/node/build/node_modules/ node_modules/ COPY --from=deps --chown=node:node /home/node/build/shared/node_modules/ shared/node_modules/ COPY --from=deps --chown=node:node /home/node/build/api/node_modules/ api/node_modules/ -CMD ["pm2-runtime", "start", "-i", "0","api/src/server.js"] +CMD ["node", "api/src/server.js"]