mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature: docker: npm -> bun
This commit is contained in:
parent
61107329fc
commit
3d13b9c5f8
2 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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/*
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue