mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature: docker: use bun instead of node
This commit is contained in:
parent
ea929465a8
commit
224e539708
2 changed files with 5 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:lts-buster
|
||||
FROM oven/bun
|
||||
LABEL maintainer="Coderaiser"
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
|
|
@ -6,10 +6,9 @@ WORKDIR /usr/src/app
|
|||
|
||||
COPY package.json /usr/src/app/
|
||||
|
||||
RUN npm config set package-lock false && \
|
||||
npm install --production && \
|
||||
npm i gritty && \
|
||||
npm cache clean --force
|
||||
RUN bun install --production --no-save && \
|
||||
bun i gritty --no-save && \
|
||||
bun pm cache rm
|
||||
|
||||
COPY . /usr/src/app
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue