Replies: 4 comments 1 reply
-
I'm facing the same on my project. After some debugging session, I've found my issue is related to this vite pluging: Are you using same plugin? |
Beta Was this translation helpful? Give feedback.
-
I'm also experiencing the same problem when trying to containerize a freshly built nuxt 3.13.1 application. I don't think it's WSL / docker related. I'm on linux, on different docker version:
|
Beta Was this translation helpful? Give feedback.
-
This is also happening to me. I'm digging in more to figure out what could be the culprit. |
Beta Was this translation helpful? Give feedback.
-
Building with Bun hangs here at the "transforming" part. It just works when I do More info regarding my setup: I run the following Dockerfile with this command. docker build -f Dockerfile.bun -t my-app . FROM oven/bun:debian AS development-dependencies-env
COPY . /app
WORKDIR /app
RUN bun install --frozen-lockfile
FROM oven/bun:debian AS production-dependencies-env
COPY ./package.json bun.lock /app/
WORKDIR /app
RUN bun install --frozen-lockfile --omit=dev
FROM oven/bun:debian AS build-env
COPY . /app/
COPY --from=development-dependencies-env /app/node_modules /app/node_modules
WORKDIR /app
RUN bun run build
FROM oven/bun:debian
COPY ./package.json bun.lock /app/
COPY --from=production-dependencies-env /app/node_modules /app/node_modules
COPY --from=build-env /app/build /app/build
WORKDIR /app
CMD ["bun", "run", "start"] When I use the NPM setup, it works alright. That setup I run using: docker build -t my-app . FROM node:22-alpine AS development-dependencies-env
COPY . /app
WORKDIR /app
RUN npm ci
FROM node:22-alpine AS production-dependencies-env
COPY ./package.json package-lock.json /app/
WORKDIR /app
RUN npm ci --omit=dev
FROM node:22-alpine AS build-env
COPY . /app/
COPY --from=development-dependencies-env /app/node_modules /app/node_modules
WORKDIR /app
RUN npm run build
FROM node:22-alpine
COPY ./package.json package-lock.json /app/
COPY --from=production-dependencies-env /app/node_modules /app/node_modules
COPY --from=build-env /app/build /app/build
WORKDIR /app
CMD ["npm", "run", "start"] |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm still having issues making proper testing
bun
withdockerfile
.The process hangs on the
build
command and never ends.This is the last debug messages where bun hangs.
This is not happening if I run
bun run build
withoutDockerfile
.Dockerfile
simple commands:Happens on
WSL2
on Windows11
.WSL2
BR,
Beta Was this translation helpful? Give feedback.
All reactions