When creating a Docker image Described what to do when Exception: you need a C compiler to build uWSGI error occurs in python: 3.8-alpine
dockerfile
FROM python:3.8-alpine
RUN addgroup -S uwsgi && adduser -S -G uwsgi uwsgi
RUN pip install Flask==0.10.1 uWSGI
dockerfile
FROM python:3.8-alpine
RUN apk add gcc build-base linux-headers
RUN addgroup -S uwsgi && adduser -S -G uwsgi uwsgi
RUN pip install Flask==0.10.1 uWSGI
that's all
Recommended Posts