[DOCKER] python: 3.8-Handling Exception: you need a C compiler to build uWSGI error with alpine

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

  1. The following description will result in an error (Exception: you need a C compiler to build uWSGI)

dockerfile


FROM python:3.8-alpine

RUN addgroup -S uwsgi && adduser -S -G uwsgi uwsgi
RUN pip install Flask==0.10.1 uWSGI
  1. Add gcc with the following statement RUN apk add gcc build-base linux-headers

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

python: 3.8-Handling Exception: you need a C compiler to build uWSGI error with alpine
Knowledge you need to know when programming competitive programming with Python2
How to build a python2.7 series development environment with Vagrant
How to deal with python installation error in pyenv (BUILD FAILED)
Solve ABC163 A ~ C with Python
A note on what you did to use Flycheck with Python
Nice to meet you with python
Do you need a Python re.compile?
Solve ABC168 A ~ C with Python
Solve ABC162 A ~ C with Python
Solve ABC167 A ~ C with Python
Solve ABC158 A ~ C with Python
Pass a list by reference from Python to C ++ with pybind11
A memo that allows you to change Pineapple's Python environment with pyenv
I tried to build a Mac Python development environment with pythonz + direnv
I want to build a Python environment
[Introduction to Udemy Python3 + Application] 65. Exception handling
Python exception handling a little more convenient
Build a python virtual environment with pyenv
Build a modern Python environment with Neovim
How to deal with "^ [[A ^ [[B ^ [[C ^ [[D"] when you press the arrow keys when executing python on mac
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Trial and error]
What to do if you get an error when installing python with pyenv
[Python] What to check when you get a Unicode Decode Error in Django
If you want to make a discord bot with python, let's use a framework
Error when installing a module with Python pip
Build a C language development environment with a container
Build a python environment with ansible on centos6
Ported a naive homebrew language compiler to Python
Try to draw a life curve with python
I want to make a game with Python
[Python] Build a Django development environment with Docker
You can easily create a GUI with Python
Create a python3 build environment with Sublime Text3
Try to make a "cryptanalysis" cipher with Python
A story stuck with handling Python binary data
Decide to assign a laboratory with Python (fiction)
Steps to create a Twitter bot with python
Try to make a dihedral group with Python
Build a Python environment with OSX El capitan
Quickly build a Python Django environment with IntelliJ
Challenge AtCoder (ABC) 164 with Python! A ~ C problem
I want to write to a file with Python
A layman wants to get started with Python
Build a Python machine learning environment with a container
Build a python execution environment with VS Code
What to do if you get an OpenSSL error when installing Python 2 with pyenv
[No need to build local environment] Deploy Python bottle application made with Cloud9 to Heroku
You don't need to install Anaconda to build a machine learning environment. Let's use Miniconda
[AWS] Development environment version that tried to build a Python environment with eb [Elastic Beanstalk]
What to do if you run python in IntelliJ and end with an error
Python Error Handling
Python exception handling
Python exception handling
[Python] If you create a file with the same name as the module to be imported, an Attribute Error will occur.
How to convert / restore a string with [] in python
A memo connected to HiveServer2 of EMR with python
Try to make a Python module in C language
Try to make a command standby tool with python
Python Ver. To introduce WebPay with a little code.
Build a python virtual environment with virtualenv and virtualenvwrapper