Skip to content

Commit e0679d4

Browse files
committed
Ensure all necessary build tools exist in image
1 parent ed593d5 commit e0679d4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ WORKDIR /app
66
ADD . /app/
77
EXPOSE 4000
88

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

0 commit comments

Comments
 (0)