Skip to content

Commit

Permalink
Add workaround for aarch64 container image build (#5423)
Browse files Browse the repository at this point in the history
* Make yarnt imeout longer

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

* Use node 18 to build control plane web contents

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>

---------

Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
  • Loading branch information
Warashi authored Dec 16, 2024
1 parent e83e9d0 commit 5e1a7f5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmd/pipecd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# web builder
FROM node:20.18.1-alpine3.21 AS web
# because of this issue, we choose node 18
# https://github.com/pipe-cd/pipecd/issues/5422
# https://github.com/nodejs/docker-node/issues/1335#issuecomment-2024344411
FROM node:18.20.5-alpine3.21 AS web

WORKDIR /app

COPY . .

RUN apk add --no-cache make git

# because of this issue, we set network-timeout to 300000
# https://github.com/pipe-cd/pipecd/issues/5422
RUN yarn config set network-timeout 300000

RUN make update/web-deps
RUN make build/web

Expand Down

0 comments on commit 5e1a7f5

Please sign in to comment.