feat: bundle node_modules into the server
This commit is contained in:
parent
cac64a6fbe
commit
b8d22beb17
6 changed files with 21 additions and 27 deletions
|
|
@ -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" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue