Skip to content

Commit

Permalink
switch to clean-modules
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Apr 19, 2024
1 parent 48ecfd9 commit fd5aa00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ ARG NODE_ENV=production \

RUN apk upgrade --no-cache -a && \
apk add --no-cache ca-certificates nodejs-current yarn git && \
wget -q https://gobinaries.com/tj/node-prune -O - | sh && \
yarn global add clean-modules && \
git clone --recursive https://github.com/FKLC/WhatsAppToDiscord --branch "$W2D_VERSION" /app && \
cd /app && \
if [ "$TARGETARCH" = "amd64" ]; then \
npm_config_target_platform=linux npm_config_target_arch=x64 yarn install --no-lockfile; \
elif [ "$TARGETARCH" = "arm64" ]; then \
npm_config_target_platform=linux npm_config_target_arch=arm64 yarn install --no-lockfile; \
fi && \
node-prune && \
clean-modules --yes && \
yarn cache clean --all

FROM alpine:3.19.1
Expand Down

0 comments on commit fd5aa00

Please sign in to comment.