[Django]-UWSGI install fail in docker build

2👍

For me, I had FROM python:3.11-alpine in my Dockerfile which didn’t include all the necessary dependencies to build uwsgi. When switching to FROM python:3.11, it built fine for me.

1👍

uWSGI has multiple dependencies which should be available before installation. I prefer to use a readily available ubuntu base image with the minor modification possible.

FROM ubuntu:18.04
RUN apt update && \
 apt install -y vim && \
 apt-get install -y python3-pip && \
 apt install gcc && \
 pip3 install uwsgi 
👤meti

Leave a comment