Closed alimoli closed 11 months ago
Not sure if it gets stuck or not. It might depend on how long you have to wait. The build for strapi can take up several minutes
Not sure if it gets stuck or not. It might depend on how long you have to wait. The build for strapi can take up several minutes
Thank you for your quick reply. I think 16 minutes is very much considering the linux/arm64
architecture takes less that one minute.
[+] Building 15.9s (20/20) FINISHED
Anyway, I have left it for a while now and we are over 15 hours.
I have just given a try with docker buildx and I am getting:
docker buildx build --platform linux/amd64 -t xxx/yyy-strapi:0.0.4 -f Dockerfile.prod .
Dockerfile.prod:9
--------------------
7 | WORKDIR /opt/
8 | COPY package.json yarn.lock ./
9 | >>> RUN yarn config set network-timeout 600000 -g && yarn install --production
10 | ENV PATH /opt/node_modules/.bin:$PATH
11 | WORKDIR /opt/app
--------------------
ERROR: failed to solve: process "/dev/.buildkit_qemu_emulator /bin/sh -c yarn config set network-timeout 600000 -g && yarn install --production" did not complete successfully: exit code: 1
Anyway I think my issues is related to this https://github.com/docker/for-mac/issues/6356. I will close this issue.
🐛 Bug Report
I used your interactive command to dockerize my application.
🤷♀️ What did you do
Then, I am trying to build the production image for the architecture
linux/amd64
.It produces the following output:
If I change the platform with
linux/arm64
, the build works. ⚠️⛔️ Error log
The building gets stuck and I am not able to get any error. If I stop the command, I get:
ERROR: failed to solve: Canceled: context canceled
🙇♀️ Expected behavior/code
I expect to build the application using the provided Dockerfile for the platform
linux/amd64
.👩💻 Environment