Open ziyaDev opened 3 months ago
Same over here
FROM oven/bun:1 AS base
WORKDIR /usr/src/app
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb /temp/dev/
RUN cd /temp/dev && bun install --frozen-lockfile
RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production
FROM base AS prerelease
COPY --from=install /temp/dev/node_modules node_modules
COPY . .
ENV NODE_ENV=production
RUN bun run --bun build
FROM base AS release
COPY --from=install /temp/prod/node_modules node_modules
COPY --from=prerelease /usr/src/app/build/server ./build/server
COPY --from=prerelease /usr/src/app/build/client ./build/client
COPY --from=prerelease /usr/src/app/package.json .
USER bun
EXPOSE 3000/tcp
ENTRYPOINT [ "bun", "run", "start" ]
Step 6/22 : RUN cd /temp/dev && bun install --frozen-lockfile
---> Running in 4fc091e27a5e
bun install v1.1.29 (6d43b366)
Resolving dependencies
Resolved, downloaded and extracted [2]
same here
anybody got a fix? stuck with the same issue, can't build the docker image
[EDIT] Downgraded from 1.1.34 to 1.1.33 and it worked, should be like that 😢
How can we reproduce the crash?
I'm encountering issues while using the official Dockerfile configuration to build my NestJS app. The build process stalls at the following step:
RUN cd /temp/dev && bun install --frozen-lockfile
Relevant log output
Stack Trace (bun.report)
Bun v1.1.18 (
5a0b935
) on linux x86_64_baseline [InstallCommand]Segmentation fault at address 0x000000B0
??
http.zig:2999
:src.http.closeAndFail__anon_149944
http.zig:0
:src.http.onData__anon_149951
http.zig:580
:src.deps.uws.NewSocketHandler
openssl.c:526
:ssl_on_data
loop.c:388
:us_loop_run_bun_tick
uws.zig:1283
:src.http.HTTPThread.processEvents
http.zig:814
:Thread.PosixThreadImpl.spawn__anon_136392.Instance.entryFn
??