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