我正在尝试在运行 gunicorn 的 docker python:3.8.0a4-alpine3.9 上安装 Gevent。
在构建 docker 时,我总是收到错误消息“gcc failed with exit status 1”。
我试过安装几个软件包,但没有一个成功。
这是 Dockerfile:
FROM python:3.8.0a4-alpine3.9
RUN echo "@edge-community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update && \
apk add build-base python-dev && \
apk add py-gevent
RUN pip install gunicorn gevent
Run Code Online (Sandbox Code Playgroud)
命令:
docker build . -t "test:one"
最后几行输出:
FROM python:3.8.0a4-alpine3.9
RUN echo "@edge-community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update && \
apk add build-base python-dev && \
apk add py-gevent
RUN pip install gunicorn …Run Code Online (Sandbox Code Playgroud)