Git Product home page Git Product logo

Comments (5)

AbhinavMir avatar AbhinavMir commented on June 19, 2024

Kinda hacky, but does RUN bun install --skip-ts-errors help? I'm guessing it's because isNaturalNumber is either defined as an instance of some module.

from bun.

kingcwt avatar kingcwt commented on June 19, 2024

I have installed system dependencies to solve this problem, but I feel that this is not the best solution. And I don't have enough time now to study

You can make a copy of the package.json file I provided above and use it https://bun.sh/guides/ecosystem/docker According to the reference I provided above, you only need to copy my package.json and execute bun iinstall to find the specific problem with this dockerfile. I hope the big shot can help me take a look.


This is currently my dumbest way to solve it. I hope there can be a better way, please
FROM oven/bun:1 as base
WORKDIR /app

FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb bunfig.toml /temp/dev/
ENV PATH="/usr/bin/git:${PATH}"
ENV NODE_OPTIONS="--max-old-space-size=4096"
RUN apt-get update && apt-get install -y
libc6
libgcc1
libstdc++6
zlib1g
libpng16-16
libjpeg62-turbo
libgif7
libglib2.0-0
autoconf
automake
libtool
nasm
build-essential
file
nodejs

RUN apt-get update && apt-get install -y \

libc6 \

zlib1g \

libglib2.0-0 \

autoconf \

automake \

libtool \

nasm \

build-essential \

file \

nodejs

RUN apt-get update && apt-get install -y \

nodejs \

file \

libc6

RUN cd /temp/dev && bun install

RUN apt-get install -y git

FROM base AS prerelease
COPY --from=install /temp/dev/node_modules node_modules
COPY . .

RUN bun run build
CMD cp -r /app/dist /test

from bun.

kingcwt avatar kingcwt commented on June 19, 2024
image This is my current clumsy method to solve it. I hope you can copy a copy of my package.json file and try the bun install command in the Dockerfile file, and you will find the problem

from bun.

kingcwt avatar kingcwt commented on June 19, 2024

I hope there is a better solution. If possible, I hope you can help me take a look.

from bun.

kingcwt avatar kingcwt commented on June 19, 2024

Indeed, currently there are many compatibility issues with bun that cannot completely replace nodes. I hope it will improve in the future. I have already resolved this issue through pnpm. I won't tinker with bun for now. thanks

from bun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.