diff --git a/Dockerfile b/Dockerfile index ac9c049..b74362d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,10 +11,10 @@ RUN apk upgrade --no-cache -a && \ 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 && \ + npm_config_arch=x64 npm_config_target_arch=x64 yarn install --no-lockfile && \ for file in $(find /app/node_modules -name "*.node" -type f -exec file {} \; | grep -v "x86-64\|x86_64" | grep "aarch64\|arm64" | sed "s|\([^:]\):.*|\1|g"); do rm -v "$file"; done; \ elif [ "$TARGETARCH" = "arm64" ]; then \ - npm_config_target_platform=linux npm_config_target_arch=arm64 yarn install --no-lockfile && \ + npm_config_arch=arm64 npm_config_target_arch=arm64 yarn install --no-lockfile && \ for file in $(find /app/node_modules -name "*.node" -type f -exec file {} \; | grep -v "aarch64\|arm64" | grep "x86-64\|x86_64" | sed "s|\([^:]\):.*|\1|g"); do rm -v "$file"; done; \ fi && \ yarn cache clean --all && \