Unable to build container image on Mac/M2
Summary
User is unable to build the image localy on Mac/M2 computer
Steps to reproduce
- Use a Mac/M2 computer
- Install Docker desktop
- Run
make build-docker
What is the current bug behavior?
The build fails
What is the expected correct behavior?
The build should succeed
Relevant logs and/or screenshots
> [ 6/10] RUN --mount=type=bind,source=requirements.txt,target=requirements.txt apk add --update --no-cache --virtual .build build-base && make install-docker && apk del .build:
#10 0.191 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz
#10 0.334 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz
#10 0.506 (1/19) Installing libgcc (11.2.1_git20220219-r2)
#10 0.525 (2/19) Installing libstdc++ (11.2.1_git20220219-r2)
#10 0.560 (3/19) Installing binutils (2.38-r3)
#10 0.692 (4/19) Installing libmagic (5.41-r0)
#10 0.740 (5/19) Installing file (5.41-r0)
#10 0.760 (6/19) Installing libgomp (11.2.1_git20220219-r2)
#10 0.780 (7/19) Installing libatomic (11.2.1_git20220219-r2)
#10 0.794 (8/19) Installing gmp (6.2.1-r2)
#10 0.816 (9/19) Installing isl22 (0.22-r0)
#10 0.853 (10/19) Installing mpfr4 (4.1.0-r0)
#10 0.882 (11/19) Installing mpc1 (1.2.1-r0)
#10 0.898 (12/19) Installing gcc (11.2.1_git20220219-r2)
#10 1.826 (13/19) Installing musl-dev (1.2.3-r2)
#10 1.942 (14/19) Installing libc-dev (0.7.2-r3)
#10 1.957 (15/19) Installing g++ (11.2.1_git20220219-r2)
#10 2.501 (16/19) Installing fortify-headers (1.1-r1)
#10 2.521 (17/19) Installing patch (2.7.6-r7)
#10 2.540 (18/19) Installing build-base (0.5-r3)
#10 2.553 (19/19) Installing .build (20221114.173515)
#10 2.554 Executing busybox-1.35.0-r17.trigger
#10 2.560 OK: 205 MiB in 56 packages
#10 2.588 python3 -m pip install --no-cache-dir --compile -r "requirements.txt"
#10 4.367 Collecting python-dotenv
#10 4.433 Downloading python_dotenv-0.21.0-py3-none-any.whl (18 kB)
#10 4.478 Collecting pyyaml
#10 4.493 Downloading PyYAML-6.0.tar.gz (124 kB)
#10 4.517 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.0/125.0 kB 5.8 MB/s eta 0:00:00
#10 4.629 Installing build dependencies: started
#10 7.105 Installing build dependencies: finished with status 'done'
#10 7.106 Getting requirements to build wheel: started
#10 8.235 Getting requirements to build wheel: finished with status 'done'
#10 8.239 Preparing metadata (pyproject.toml): started
#10 8.484 Preparing metadata (pyproject.toml): finished with status 'done'
#10 8.515 Collecting Flask
#10 8.529 Downloading Flask-2.2.2-py3-none-any.whl (101 kB)
#10 8.535 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.5/101.5 kB 22.4 MB/s eta 0:00:00
#10 8.646 Collecting django-htmlmin
#10 8.667 Downloading django-htmlmin-0.11.0.tar.gz (8.0 kB)
#10 8.672 Preparing metadata (setup.py): started
#10 9.156 Preparing metadata (setup.py): finished with status 'done'
#10 9.293 Collecting lxml
#10 9.318 Downloading lxml-4.9.1.tar.gz (3.4 MB)
#10 9.444 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 27.1 MB/s eta 0:00:00
#10 9.784 Preparing metadata (setup.py): started
#10 9.987 Preparing metadata (setup.py): finished with status 'error'
#10 9.991 error: subprocess-exited-with-error
#10 9.991
#10 9.991 × python setup.py egg_info did not run successfully.
#10 9.991 │ exit code: 1
#10 9.991 ╰─> [3 lines of output]
#10 9.991 Building lxml version 4.9.1.
#10 9.991 Building without Cython.
#10 9.991 Error: Please make sure the libxml2 and libxslt development packages are installed.
#10 9.991 [end of output]
#10 9.991
#10 9.991 note: This error originates from a subprocess, and is likely not a problem with pip.
#10 9.992 error: metadata-generation-failed
#10 9.992
#10 9.992 × Encountered error while generating package metadata.
#10 9.992 ╰─> See above for output.
#10 9.992
#10 9.992 note: This is an issue with the package mentioned above, not pip.
#10 9.992 hint: See above for details.
#10 10.12
#10 10.12 [notice] A new release of pip available: 22.3 -> 22.3.1
#10 10.12 [notice] To update, run: pip install --upgrade pip
#10 10.24 make: *** [Makefile:57: install-docker] Error 1
------
executor failed running [/bin/sh -c apk add --update --no-cache --virtual .build build-base && make install-docker && apk del .build]: exit code: 2
make: *** [build-docker] Error 1
Environment info
0.17.2