From ea558bc9f29442f5074944e0d85d8eae7a882e6c Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 11 Jul 2024 10:43:30 +0200 Subject: [PATCH] Update Dockerfile Signed-off-by: Zoey --- Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 657d65c..9cc8e5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,21 +12,21 @@ RUN apk upgrade --no-cache -a && \ chmod +x /app/support/docker/production/entrypoint.sh && \ if [ "$TARGETARCH" = "amd64" ]; then \ cd /app/client && \ - npm_config_target_platform=linux npm_config_target_arch=x64 yarn install --pure-lockfile && \ + npm_config_arch=x64 npm_config_target_arch=x64 yarn install --pure-lockfile && \ cd /app && \ - npm_config_target_platform=linux npm_config_target_arch=x64 yarn install --pure-lockfile && \ - npm_config_target_platform=linux npm_config_target_arch=x64 npm run build && \ + npm_config_arch=x64 npm_config_target_arch=x64 yarn install --pure-lockfile && \ + npm_config_arch=x64 npm_config_target_arch=x64 npm run build && \ rm -r /app/client/.angular /app/client/node_modules /app/node_modules && \ - npm_config_target_platform=linux npm_config_target_arch=x64 yarn install --pure-lockfile --production && \ + npm_config_arch=x64 npm_config_target_arch=x64 yarn install --pure-lockfile --production && \ 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 \ cd /app/client && \ - npm_config_target_platform=linux npm_config_target_arch=arm64 yarn install --pure-lockfile && \ + npm_config_arch=arm64 npm_config_target_arch=arm64 yarn install --pure-lockfile && \ cd /app && \ - npm_config_target_platform=linux npm_config_target_arch=arm64 yarn install --pure-lockfile && \ - npm_config_target_platform=linux npm_config_target_arch=arm64 npm run build && \ + npm_config_arch=arm64 npm_config_target_arch=arm64 yarn install --pure-lockfile && \ + npm_config_arch=arm64 npm_config_target_arch=arm64 npm run build && \ rm -r /app/client/.angular /app/client/node_modules /app/node_modules && \ - npm_config_target_platform=linux npm_config_target_arch=arm64 yarn install --pure-lockfile --production && \ + npm_config_arch=arm64 npm_config_target_arch=arm64 yarn install --pure-lockfile --production && \ 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 && \