feat: bundle node_modules into the server

This commit is contained in:
Aarnav Tale
2025-03-24 16:08:34 -04:00
parent cac64a6fbe
commit b8d22beb17
6 changed files with 21 additions and 27 deletions
+1 -8
View File
@@ -9,15 +9,8 @@ RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm run build
RUN pnpm prune --prod
FROM node:22-alpine
WORKDIR /app
COPY --from=build /app/build /app/build
COPY --from=build /app/node_modules /app/node_modules
RUN echo '{"type":"module"}' > /app/package.json
EXPOSE 3000
ENV NODE_ENV=production
ENV HOST=0.0.0.0
CMD [ "node", "./build/headplane/server.js" ]
CMD [ "node", "./build/server/index.js" ]