We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
构建docker镜像失败 执行sudo docker build -t mrdoc_iamge . 下面是输出报错
[5/5] RUN set -x && apk add --no-cache --virtual .build-deps build-base g++ gcc libxslt-dev python3-dev linux-headers && apk add --no-cache pwgen git tzdata zlib-dev freetype-dev jpeg-dev mariadb-dev postgresql-dev && pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && python -m pip install --upgrade pip && pip --no-cache-dir install -r requirements.txt && pip --no-cache-dir install mysqlclient && pip --no-cache-dir install uwsgi && chmod +x docker_mrdoc.sh && apk del .build-deps && rm -rf /var/cache/apk/: #0 0.348 + apk add --no-cache --virtual .build-deps build-base g++ gcc libxslt-dev python3-dev linux-headers #0 0.357 fetch https://mirrors.ustc.edu.cn/alpine/v3.18/main/x86_64/APKINDEX.tar.gz #0 0.498 fetch https://mirrors.ustc.edu.cn/alpine/v3.18/community/x86_64/APKINDEX.tar.gz #0 0.730 (1/41) Upgrading musl (1.2.4-r1 -> 1.2.4-r2) #0 0.749 (2/41) Installing libgcc (12.2.1_git20220924-r10) #0 0.769 (3/41) Installing libstdc++ (12.2.1_git20220924-r10) #0 0.809 (4/41) Installing zstd-libs (1.5.5-r4) #0 0.829 (5/41) Installing binutils (2.40-r7) #0 0.903 (6/41) Installing libmagic (5.45-r0) #0 0.939 (7/41) Installing file (5.45-r0) #0 0.952 (8/41) Installing libgomp (12.2.1_git20220924-r10) #0 0.981 (9/41) Installing libatomic (12.2.1_git20220924-r10) #0 1.003 (10/41) Installing gmp (6.2.1-r3) #0 1.031 (11/41) Installing isl26 (0.26-r1) #0 1.069 (12/41) Installing mpfr4 (4.2.0_p12-r0) #0 1.087 (13/41) Installing mpc1 (1.3.1-r1) #0 1.109 (14/41) Installing gcc (12.2.1_git20220924-r10) #0 3.832 (15/41) Installing libstdc++-dev (12.2.1_git20220924-r10) #0 4.904 (16/41) Installing musl-dev (1.2.4-r2) #0 5.184 (17/41) Installing libc-dev (0.7.2-r5) #0 5.196 (18/41) Installing g++ (12.2.1_git20220924-r10) #0 6.297 (19/41) Installing make (4.4.1-r1) #0 6.317 (20/41) Installing fortify-headers (1.1-r3) #0 6.335 (21/41) Installing patch (2.7.6-r10) #0 6.365 (22/41) Installing build-base (0.5-r3) #0 6.384 (23/41) Installing libgpg-error (1.47-r1) #0 6.414 (24/41) Installing libgcrypt (1.10.2-r1) #0 6.458 (25/41) Installing libxml2 (2.11.4-r0) #0 6.491 (26/41) Installing libxslt (1.1.38-r0) #0 6.511 (27/41) Installing pkgconf (1.9.5-r0) #0 6.531 (28/41) Installing zlib-dev (1.2.13-r1) #0 6.555 (29/41) Installing xz (5.4.3-r0) #0 6.584 (30/41) Installing xz-dev (5.4.3-r0) #0 6.607 (31/41) Installing libxml2-utils (2.11.4-r0) #0 6.630 (32/41) Installing libxml2-dev (2.11.4-r0) #0 6.662 (33/41) Installing libxslt-dev (1.1.38-r0) #0 6.682 (34/41) Installing mpdecimal (2.5.1-r2) #0 6.708 (35/41) Installing python3 (3.11.6-r0) #0 7.194 (36/41) Installing python3-pycache-pyc0 (3.11.6-r0) #0 7.571 (37/41) Installing pyc (0.1-r0) #0 7.583 (38/41) Installing python3-pyc (3.11.6-r0) #0 7.608 (39/41) Installing python3-dev (3.11.6-r0) #0 10.63 (40/41) Installing linux-headers (6.3-r0) #0 10.80 (41/41) Installing .build-deps (20231117.080817) #0 10.80 Executing busybox-1.36.1-r2.trigger #0 10.80 OK: 369 MiB in 78 packages #0 10.86 + apk add --no-cache pwgen git tzdata zlib-dev freetype-dev jpeg-dev mariadb-dev postgresql-dev #0 10.87 fetch https://mirrors.ustc.edu.cn/alpine/v3.18/main/x86_64/APKINDEX.tar.gz #0 13.64 fetch https://mirrors.ustc.edu.cn/alpine/v3.18/community/x86_64/APKINDEX.tar.gz #0 17.48 (1/46) Upgrading libcrypto3 (3.1.3-r0 -> 3.1.4-r1) #0 17.66 (2/46) Upgrading libssl3 (3.1.3-r0 -> 3.1.4-r1) #0 17.68 (3/46) Installing brotli-libs (1.0.9-r14) #0 17.71 (4/46) Installing libpng (1.6.39-r3) #0 17.73 (5/46) Installing freetype (2.13.0-r5) #0 17.77 (6/46) Installing brotli (1.0.9-r14) #0 17.78 (7/46) Installing brotli-dev (1.0.9-r14) #0 17.81 (8/46) Installing libpng-dev (1.6.39-r3) #0 17.83 (9/46) Installing freetype-dev (2.13.0-r5) #0 17.87 (10/46) Installing libunistring (1.1-r1) #0 17.91 (11/46) Installing libidn2 (2.3.4-r1) #0 17.93 (12/46) Installing nghttp2-libs (1.57.0-r0) #0 17.95 (13/46) Installing libcurl (8.4.0-r0) #0 17.98 (14/46) Installing pcre2 (10.42-r1) #0 18.01 (15/46) Installing git (2.40.1-r0) #0 18.12 (16/46) Installing libjpeg-turbo (2.1.5.1-r3) #0 18.14 (17/46) Installing libjpeg-turbo-dev (2.1.5.1-r3) #0 18.16 (18/46) Installing jpeg-dev (9e-r1) #0 18.18 (19/46) Installing fmt (9.1.0-r1) #0 18.21 (20/46) Installing fmt-dev (9.1.0-r1) #0 18.24 (21/46) Installing openssl-dev (3.1.4-r1) #0 18.28 (22/46) Installing mariadb-connector-c (3.3.5-r0) #0 18.29 (23/46) Installing mariadb-connector-c-dev (3.3.5-r0) #0 18.32 (24/46) Installing mariadb-common (10.11.5-r0) #0 18.36 (25/46) Installing libaio (0.3.113-r1) #0 18.37 (26/46) Installing mariadb-embedded (10.11.5-r0) #0 18.53 (27/46) Installing mariadb-dev (10.11.5-r0) #0 18.60 (28/46) Installing libpq (15.5-r0) #0 18.62 (29/46) Installing libpq-dev (15.5-r0) #0 18.65 (30/46) Installing libecpg (15.5-r0) #0 18.67 (31/46) Installing libecpg-dev (15.5-r0) #0 18.70 (32/46) Installing llvm14-libs (14.0.6-r14) #0 21.34 (33/46) Installing clang14-libs (14.0.6-r7) #0 22.69 (34/46) Installing clang14-libclang (14.0.6-r7) #0 23.58 (35/46) Installing clang14 (14.0.6-r7) #0 23.73 (36/46) Installing icu-data-en (73.2-r2) #0 23.81 Executing icu-data-en-73.2-r2.post-install #0 23.91 * #0 23.91 * If you need ICU with non-English locales and legacy charset support, install #0 23.91 * package icu-data-full. #0 23.91 * #0 23.91 (37/46) Installing icu-libs (73.2-r2) #0 23.99 (38/46) Installing icu (73.2-r2) #0 24.01 (39/46) Installing icu-dev (73.2-r2) #0 24.07 (40/46) Installing llvm14 (14.0.6-r14) #0 25.88 (41/46) Installing lz4-libs (1.9.4-r4) #0 25.90 (42/46) Installing lz4-dev (1.9.4-r4) #0 25.92 (43/46) Installing zstd (1.5.5-r4) #0 25.95 (44/46) Installing zstd-dev (1.5.5-r4) #0 25.97 (45/46) Installing postgresql15-dev (15.5-r0) #0 26.12 (46/46) Installing pwgen (2.08-r3) #0 26.14 Executing busybox-1.36.1-r2.trigger #0 26.14 Executing ca-certificates-20230506-r0.trigger #0 26.18 OK: 699 MiB in 122 packages #0 26.23 + pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple #0 27.57 Writing to /root/.config/pip/pip.conf #0 27.61 + python -m pip install --upgrade pip #0 28.23 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple #0 28.23 Requirement already satisfied: pip in /usr/local/lib/python3.7/site-packages (23.0.1) #0 28.49 Collecting pip #0 28.54 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl (2.1 MB) #0 32.54 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 524.5 kB/s eta 0:00:00 #0 32.59 Installing collected packages: pip #0 32.59 Attempting uninstall: pip #0 32.59 Found existing installation: pip 23.0.1 #0 32.73 Uninstalling pip-23.0.1: #0 32.99 Successfully uninstalled pip-23.0.1 #0 34.16 Successfully installed pip-23.3.1 #0 34.16 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv #0 34.44 + pip --no-cache-dir install -r requirements.txt #0 34.84 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple #0 35.13 Collecting django==2.2. (from -r requirements.txt (line 1)) #0 35.17 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/43/69/eaac9a827335898d626066989865974fa48bfc23efd1b34628d64543b2d9/Django-2.2.28-py3-none-any.whl (7.5 MB) #0 35.38 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.5/7.5 MB 35.7 MB/s eta 0:00:00 #0 35.49 Collecting beautifulsoup4==4.8.2 (from -r requirements.txt (line 2)) #0 35.52 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/cb/a1/c698cf319e9cfed6b17376281bd0efc6bfc8465698f54170ef60a485ab5d/beautifulsoup4-4.8.2-py3-none-any.whl (106 kB) #0 35.53 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 106.9/106.9 kB 130.4 MB/s eta 0:00:00 #0 35.85 Collecting lxml (from -r requirements.txt (line 3)) #0 35.88 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/be/b1/cdb59a58cbf47cc833aac796b1c50f5f13b0ccf79829f00d72e8ec65ae0d/lxml-4.9.3-cp37-cp37m-musllinux_1_1_x86_64.whl (7.2 MB) #0 35.95 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.2/7.2 MB 99.1 MB/s eta 0:00:00 #0 36.41 Collecting pillow<10.0,>=7.1.0 (from -r requirements.txt (line 4)) #0 36.45 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/00/d5/4903f310765e0ff2b8e91ffe55031ac6af77d982f0156061e20a4d1a8b2d/Pillow-9.5.0.tar.gz (50.5 MB) #0 39.62 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.5/50.5 MB 12.3 MB/s eta 0:00:00 #0 41.09 Preparing metadata (setup.py): started #0 41.58 Preparing metadata (setup.py): finished with status 'done' #0 41.62 Collecting loguru==0.4.1 (from -r requirements.txt (line 5)) #0 41.65 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b2/f4/2c8b94025c6e30bdb331c7ee628dc152771845aedff35f0365c2a4dacd42/loguru-0.4.1-py3-none-any.whl (54 kB) #0 41.66 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.2/54.2 kB 102.6 MB/s eta 0:00:00 #0 41.76 Collecting importlib-metadata==4.7.1 (from -r requirements.txt (line 6)) #0 41.79 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/09/24/707a687e93f72a8eeba442da7a70de79111eac3586544935d5c253bf8d7b/importlib_metadata-4.7.1-py3-none-any.whl (17 kB) #0 41.87 Collecting djangorestframework==3.11.2 (from -r requirements.txt (line 7)) #0 41.90 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/83/7c/4cfacd5a93eab48c1714da0422d88b031dfb94f6795c2d5ef9a348f1f376/djangorestframework-3.11.2-py3-none-any.whl (911 kB) #0 41.95 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 911.2/911.2 kB 21.5 MB/s eta 0:00:00 #0 42.07 Collecting requests==2.24.0 (from -r requirements.txt (line 8)) #0 42.10 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl (61 kB) #0 42.10 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.8/61.8 kB 132.4 MB/s eta 0:00:00 #0 42.21 Collecting setuptools-scm (from -r requirements.txt (line 9)) #0 42.25 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1d/66/8f42c941be949ef2b22fe905d850c794e7c170a526023612aad5f3a121ad/setuptools_scm-7.1.0-py3-none-any.whl (43 kB) #0 42.25 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.8/43.8 kB 120.6 MB/s eta 0:00:00 #0 42.34 Collecting whoosh==2.7.4 (from -r requirements.txt (line 10)) #0 42.37 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ba/19/24d0f1f454a2c1eb689ca28d2f178db81e5024f42d82729a4ff6771155cf/Whoosh-2.7.4-py2.py3-none-any.whl (468 kB) #0 42.39 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.8/468.8 kB 23.0 MB/s eta 0:00:00 #0 42.44 Collecting django-haystack==3.1.1 (from -r requirements.txt (line 11)) #0 42.48 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/74/67/63b6ab92c477e68f3736681d45c8cb0c23af1ff6918350c8f7b44793a804/django_haystack-3.1.1-py3-none-any.whl (141 kB) #0 42.48 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 141.5/141.5 kB 29.0 MB/s eta 0:00:00 #0 42.54 Collecting Markdown==3.3.3 (from -r requirements.txt (line 12)) #0 42.57 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ac/ef/24a91ca96efa0d7802dffb83ccc7a3c677027bea19ec3c9ee80be740408e/Markdown-3.3.3-py3-none-any.whl (96 kB) #0 42.58 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.3/96.3 kB 50.8 MB/s eta 0:00:00 #0 42.62 Collecting jieba==0.42.1 (from -r requirements.txt (line 13)) #0 42.66 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c6/cb/18eeb235f833b726522d7ebed54f2278ce28ba9438e3135ab0278d9792a2/jieba-0.42.1.tar.gz (19.2 MB) #0 43.30 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.2/19.2 MB 25.1 MB/s eta 0:00:00 #0 43.91 Preparing metadata (setup.py): started #0 44.12 Preparing metadata (setup.py): finished with status 'done' #0 44.18 Collecting mammoth==1.4.13 (from -r requirements.txt (line 14)) #0 44.21 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c9/10/cbc6ac77000c8b02e3f276835f2835480e760df7ba8d3e216b9e6521ce31/mammoth-1.4.13-py2.py3-none-any.whl (47 kB) #0 44.22 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.3/47.3 kB 135.8 MB/s eta 0:00:00 #0 44.26 Collecting markdownify==0.6.0 (from -r requirements.txt (line 15)) #0 44.30 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/48/cf/f09b8f94e818e4b6a0aaefa7d012a74171a3bc3eccc68a0e65401f5fb7d4/markdownify-0.6.0-py3-none-any.whl (8.6 kB) #0 44.38 Collecting selenium==3.141.0 (from -r requirements.txt (line 16)) #0 44.41 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl (904 kB) #0 44.42 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 904.6/904.6 kB 129.2 MB/s eta 0:00:00 #0 44.48 Collecting webdriver_manager==3.3.0 (from -r requirements.txt (line 17)) #0 44.51 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/32/28/a4e7638fc497ff8f86c6670a5f9f42dc018c37a0b254caa5e51799959da5/webdriver_manager-3.3.0-py2.py3-none-any.whl (16 kB) #0 44.60 Collecting PyYAML==5.4.1 (from -r requirements.txt (line 18)) #0 44.63 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175 kB) #0 44.64 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 203.0 MB/s eta 0:00:00 #0 44.81 Installing build dependencies: started #0 48.23 Installing build dependencies: finished with status 'done' #0 48.23 Getting requirements to build wheel: started #0 48.50 Getting requirements to build wheel: finished with status 'error' #0 48.51 error: subprocess-exited-with-error #0 48.51 #0 48.51 × Getting requirements to build wheel did not run successfully. #0 48.51 │ exit code: 1 #0 48.51 ╰─> [62 lines of output] #0 48.51 running egg_info #0 48.51 writing lib3/PyYAML.egg-info/PKG-INFO #0 48.51 writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt #0 48.51 writing top-level names to lib3/PyYAML.egg-info/top_level.txt #0 48.51 /tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg #0 48.51 !! #0 48.51 #0 48.51 ******************************************************************************** #0 48.51 The license_file parameter is deprecated, use license_files instead. #0 48.51 #0 48.51 This deprecation is overdue, please update your project and remove deprecated #0 48.51 calls to avoid build errors in the future. #0 48.51 #0 48.51 See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. #0 48.51 ******************************************************************************** #0 48.51 #0 48.51 !! #0 48.51 parsed = self.parsers.get(option_name, lambda x: x)(value) #0 48.51 Traceback (most recent call last): #0 48.51 File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in #0 48.51 main() #0 48.51 File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main #0 48.51 json_out['return_val'] = hook(**hook_input['kwargs']) #0 48.51 File "/usr/local/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel #0 48.51 return hook(config_settings) #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel #0 48.51 return self._get_build_requires(config_settings, requirements=['wheel']) #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires #0 48.51 self.run_setup() #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 338, in run_setup #0 48.51 exec(code, locals()) #0 48.51 File "", line 295, in #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/init.py", line 107, in setup #0 48.51 return distutils.core.setup(**attrs) #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup #0 48.51 return run_commands(dist) #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands #0 48.51 dist.run_commands() #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands #0 48.51 self.run_command(cmd) #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 1234, in run_command #0 48.51 super().run_command(command) #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command #0 48.51 cmd_obj.run() #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 314, in run #0 48.51 self.find_sources() #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 322, in find_sources #0 48.51 mm.run() #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 551, in run #0 48.51 self.add_defaults() #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults #0 48.51 sdist.add_defaults(self) #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/command/sdist.py", line 104, in add_defaults #0 48.51 super().add_defaults() #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults #0 48.51 self._add_defaults_ext() #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext #0 48.51 self.filelist.extend(build_ext.get_source_files()) #0 48.51 File "", line 201, in get_source_files #0 48.51 File "/tmp/pip-build-env-d6y1mbfa/overlay/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 107, in getattr #0 48.51 raise AttributeError(attr) #0 48.51 AttributeError: cython_sources #0 48.51 [end of output] #0 48.51 #0 48.51 note: This error originates from a subprocess, and is likely not a problem with pip. #0 48.52 error: subprocess-exited-with-error #0 48.52 #0 48.52 × Getting requirements to build wheel did not run successfully. #0 48.52 │ exit code: 1 #0 48.52 ╰─> See above for output. #0 48.52 #0 48.52 note: This error originates from a subprocess, and is likely not a problem with pip.
setup.cfg
ERROR: failed to solve: process "/bin/sh -c set -x && apk add --no-cache --virtual .build-deps build-base g++ gcc libxslt-dev python3-dev linux-headers && apk add --no-cache pwgen git tzdata zlib-dev freetype-dev jpeg-dev mariadb-dev postgresql-dev && pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && python -m pip install --upgrade pip && pip --no-cache-dir install -r requirements.txt && pip --no-cache-dir install mysqlclient && pip --no-cache-dir install uwsgi && chmod +x docker_mrdoc.sh && apk del .build-deps && rm -rf /var/cache/apk/*" did not complete successfully: exit code: 1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
构建docker镜像失败
执行sudo docker build -t mrdoc_iamge .
下面是输出报错
[+] Building 53.5s (9/9) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 954B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/python:3.7-alpine 1.4s
=> [internal] load build context 1.5s
=> => transferring context: 127.28MB 1.4s
=> CACHED [1/5] FROM docker.io/library/python:3.7-alpine@sha256:f3d31c8677d03f0b3c724446077f229a6ce9d3ac430f5c08cd7dff00292048c3 0.0s
=> [2/5] COPY . /app/MrDoc/ 1.2s
=> [3/5] WORKDIR /app/MrDoc 0.0s
=> [4/5] RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories 0.3s
=> ERROR [5/5] RUN set -x && apk add --no-cache --virtual .build-deps build-base g++ gcc libxslt-dev python3-dev linux-headers 49.1s
Dockerfile:12
11 | RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
12 | >>> RUN set -x
13 | >>> && apk add --no-cache --virtual .build-deps build-base g++ gcc libxslt-dev python3-dev linux-headers
14 | >>> && apk add --no-cache pwgen git tzdata zlib-dev freetype-dev jpeg-dev mariadb-dev postgresql-dev
15 | >>> && pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
16 | >>> && python -m pip install --upgrade pip
17 | >>> && pip --no-cache-dir install -r requirements.txt
18 | >>> && pip --no-cache-dir install mysqlclient
19 | >>> && pip --no-cache-dir install uwsgi
20 | >>> && chmod +x docker_mrdoc.sh
21 | >>> && apk del .build-deps
22 | >>> && rm -rf /var/cache/apk/*
23 |
ERROR: failed to solve: process "/bin/sh -c set -x && apk add --no-cache --virtual .build-deps build-base g++ gcc libxslt-dev python3-dev linux-headers && apk add --no-cache pwgen git tzdata zlib-dev freetype-dev jpeg-dev mariadb-dev postgresql-dev && pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && python -m pip install --upgrade pip && pip --no-cache-dir install -r requirements.txt && pip --no-cache-dir install mysqlclient && pip --no-cache-dir install uwsgi && chmod +x docker_mrdoc.sh && apk del .build-deps && rm -rf /var/cache/apk/*" did not complete successfully: exit code: 1
The text was updated successfully, but these errors were encountered: