diff --git a/Dockerfile b/Dockerfile index 7ed4f16..56909cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,4 +45,4 @@ ENV STATIC_DIR=/app/artifacts/toolrate/dist/public EXPOSE 8080 -CMD ["node", "--enable-source-maps", "artifacts/api-server/dist/index.mjs"] +CMD ["sh", "-c", "pnpm --filter @workspace/db run push && node --enable-source-maps artifacts/api-server/dist/index.mjs"]