Merge pull request #2002 from tdonohue/fix_docker_arm64_build

Fix Docker arm64 build
This commit is contained in:
Tim Donohue
2022-12-15 16:37:08 -06:00
committed by GitHub

View File

@@ -6,6 +6,10 @@ WORKDIR /app
ADD . /app/
EXPOSE 4000
# Ensure Python and other build tools are available
# These are needed to install some node modules, especially on linux/arm64
RUN apk add --update python3 make g++ && rm -rf /var/cache/apk/*
# We run yarn install with an increased network timeout (5min) to avoid "ESOCKETTIMEDOUT" errors from hub.docker.com
# See, for example https://github.com/yarnpkg/yarn/issues/5540
RUN yarn install --network-timeout 300000