Skip to content

Commit

Permalink
feature: docker: use bun instead of node
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Sep 4, 2023
1 parent ea92946 commit 224e539
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM node:lts-buster
FROM oven/bun
LABEL maintainer="Coderaiser"

RUN mkdir -p /usr/src/app
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

Expand Down

0 comments on commit 224e539

Please sign in to comment.