Skip to content
New issue

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

[BUG]alphine的dockerfile应该加上gcc #14

Open
oxyhexagen opened this issue Oct 13, 2022 · 0 comments
Open

[BUG]alphine的dockerfile应该加上gcc #14

oxyhexagen opened this issue Oct 13, 2022 · 0 comments

Comments

@oxyhexagen
Copy link

否则构建带drf-yacs的容器,会依赖的ruamel.yaml.clib-0.2.6会报无法编译:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-91vjgeeu/ruamel.yaml.clib/setup.py'"'"'; file='"'"'/tmp/pipn'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-eg
cwd: /tmp/pip-install-91vjgeeu/ruamel.yaml.clib/
Complete output (3 lines):
sys.argv ['/tmp/pip-install-91vjgeeu/ruamel.yaml.clib/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-f1t97jmm']
test compiling /tmp/tmp_ruamel_f8rc27v5/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_f8rc27v5/test_ruamel_yaml.c
Exception: command 'gcc' failed with exit status 1

DockerFile加上gcc:
RUN apk update \

Pillow dependencies \

&& apk add jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev gcc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant