Skip to content

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

Open
@oxyhexagen

Description

@oxyhexagen

否则构建带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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @oxyhexagen

        Issue actions

          [BUG]alphine的dockerfile应该加上gcc · Issue #14 · HelloGitHub-Team/HelloDjango-REST-framework-tutorial