Skip to content

Commit 3eebe34

Browse files
committed
feature: docker: npm -> bun
1 parent f0bc286 commit 3eebe34

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
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 i --production --no-save && \
12+
bun i gritty && \
13+
bun pm cache rm
1414

1515
COPY . /usr/src/app
1616

docker/Dockerfile.alpine

Lines changed: 4 additions & 4 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 && \
10+
RUN curl -fsSL https://bun.com/install | bash && \
11+
bun i --no-save --production && \
1212
apk update && \
1313
apk add --no-cache bash make g++ python3 && \
14-
npm i gritty && \
15-
npm cache clean --force && \
14+
bun i gritty --no-save && \
15+
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)