feature: docker: npm -> bun

This commit is contained in:
coderiaser 2025-07-24 14:57:17 +03:00
parent 61107329fc
commit 3d13b9c5f8
2 changed files with 10 additions and 10 deletions

View file

@ -7,10 +7,10 @@ WORKDIR /usr/src/app
COPY package.json /usr/src/app/ COPY package.json /usr/src/app/
RUN npm config set package-lock false && \ RUN curl -fsSL https://bun.com/install | bash && \
npm install --production -f && \ ~/.bun/bin/bun i --production --no-save && \
npm i gritty && \ PATH=$PATH:~/.bun/bin bun i gritty --no-save && \
npm cache clean --force ~/.bun/bin/bun pm cache rm
COPY . /usr/src/app COPY . /usr/src/app

View file

@ -7,12 +7,12 @@ WORKDIR /usr/src/app
COPY package.json /usr/src/app/ COPY package.json /usr/src/app/
RUN npm config set package-lock false && \ RUN apk update && \
npm install --production -f && \ apk add --no-cache curl bash make g++ python3 && \
apk update && \ curl -fsSL https://bun.com/install | bash && \
apk add --no-cache bash make g++ python3 && \ ~/.bun/bin/bun i --production --no-save && \
npm i gritty && \ PATH=$PATH:~/.bun/bin bun i gritty --no-save && \
npm cache clean --force && \ ~/.bun/bin/bun pm cache rm && \
apk del make g++ python3 && \ apk del make g++ python3 && \
rm -rf /usr/include /tmp/* /var/cache/apk/* rm -rf /usr/include /tmp/* /var/cache/apk/*