Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored May 2, 2024
1 parent f625250 commit c18f255
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 @@ -15,15 +15,15 @@ RUN apk upgrade --no-cache -a && \
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 && \
rm -r /app/client/.angular /app/client/node_modules /app/node_modules && \
rm -vr /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; \
elif [ "$TARGETARCH" = "arm64" ]; then \
cd /app/client && \
npm_config_target_platform=linux 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 && \
rm -r /app/client/.angular /app/client/node_modules /app/node_modules && \
rm -vr /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; \
fi && \
clean-modules --yes && \
Expand Down

0 comments on commit c18f255

Please sign in to comment.