Skip to content

Commit 3d13b9c

Browse files
committed
feature: docker: npm -> bun
1 parent 6110732 commit 3d13b9c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ WORKDIR /usr/src/app
77

88
COPY package.json /usr/src/app/
99

10-
RUN npm config set package-lock false && \
11-
npm install --production -f && \
12-
npm i gritty && \
13-
npm cache clean --force
10+
RUN curl -fsSL https://bun.com/install | bash && \
11+
~/.bun/bin/bun i --production --no-save && \
12+
PATH=$PATH:~/.bun/bin bun i gritty --no-save && \
13+
~/.bun/bin/bun pm cache rm
1414

1515
COPY . /usr/src/app
1616

docker/Dockerfile.alpine

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ WORKDIR /usr/src/app
77

88
COPY package.json /usr/src/app/
99

10-
RUN npm config set package-lock false && \
11-
npm install --production -f && \
12-
apk update && \
13-
apk add --no-cache bash make g++ python3 && \
14-
npm i gritty && \
15-
npm cache clean --force && \
10+
RUN apk update && \
11+
apk add --no-cache curl bash make g++ python3 && \
12+
curl -fsSL https://bun.com/install | bash && \
13+
~/.bun/bin/bun i --production --no-save && \
14+
PATH=$PATH:~/.bun/bin bun i gritty --no-save && \
15+
~/.bun/bin/bun pm cache rm && \
1616
apk del make g++ python3 && \
1717
rm -rf /usr/include /tmp/* /var/cache/apk/*
1818

0 commit comments

Comments
 (0)