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
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
|
|
@ -39,7 +39,7 @@ jobs:
|
|||
with:
|
||||
context: .
|
||||
file: docker/Dockerfile
|
||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
coderaiser/cloudcmd:latest
|
||||
|
|
|
|||
|
|
@ -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