Skip to content

Commit f7e1b16

Browse files
committed
fix: dockerfile
1 parent eb1fdf8 commit f7e1b16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ RUN \
1313
&& update-ca-certificates \
1414
&& chown node:node /src \
1515
&& su node sh -c "cd /src && pnpm fetch --prod" \
16-
&& su node sh -c "rm -rf ~/.cache && pnpm store prune" \
1716
&& apk del .buildDeps \
1817
&& rm -rf \
1918
/tmp/* \
@@ -24,6 +23,8 @@ RUN \
2423

2524
USER node
2625
COPY --chown=node:node . /src
27-
RUN pnpm install --prefer-offline --prod
26+
RUN pnpm install --offline --prod \
27+
&& rm -rf ~/.cache \
28+
&& pnpm store prune
2829

2930
CMD [ "./node_modules/.bin/mfleet" ]

0 commit comments

Comments
 (0)