Replies: 1 comment
-
Hi @nextuplab - seems to be a good idea :-) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when installing a package in docker and running it as a preview, the size is too large, over 2GB, so I would like to use only the build code.
yarn build
dockerfile with bun
FROM oven/bun:alpine
WORKDIR /app
COPY .output /app
ENV HOST 0.0.0.0
ENV NODE_ENV=production
EXPOSE 3000
CMD [ "bun", "server/index.mjs" ]
dockerfile with node
FROM node:alpine
WORKDIR /app
COPY .output /app
ENV HOST 0.0.0.0
ENV NODE_ENV=production
EXPOSE 3000
CMD [ "node", "server/index.mjs" ]
the image below shows the size of the docker when run with bun.
Beta Was this translation helpful? Give feedback.
All reactions