title: Python docker build up error
body: <p><a href="https://i.stack.imgur.com/m5673.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m5673.png" alt=""></a></p>
  
  <p>I got this error when i run command</p>
  
  <pre><code>sudo docker-compose up
  </code></pre>
  
  <p>Docker File:</p>
  
  <pre><code> FROM alpine
  
  ARG AWS_RDS_USER
  ARG AWS_RDS_PASSWORD
  ARG AWS_RDS_HOST
  ARG AWS_RDS_DATABASE
  ARG LOCALE_SERVICE_URL
  ARG CRYPTO_KEY
  
  ENV APP_DIR=/app
  ENV APP_ENV=production
  ENV DATABASE_CONNECTION_STRING=mysql://${AWS_RDS_USER}:${AWS_RDS_PASSWORD}@${AWS_RDS_HOST}/${AWS_RDS_DATABASE}
  ENV LOCALE_SERVICE_URL=$LOCALE_SERVICE_URL
  ENV CRYPTO_KEY=$CRYPTO_KEY
  
  COPY build/requirements.txt build/app.ini ${APP_DIR}/
  COPY build/nginx.conf /etc/nginx/nginx.conf
  COPY api ${APP_DIR}/api
  
  RUN apk add --no-cache curl python pkgconfig python-dev openssl-dev libffi-dev musl-dev make gcc
  
  RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python
  
  RUN apk update &amp;&amp; \
      apk add --virtual .build-deps autoconf gcc make g++ python-dev &amp;&amp; \
      apk add nginx uwsgi uwsgi-python py2-pip py-mysqldb &amp;&amp; \
      chown -R nginx:nginx ${APP_DIR} &amp;&amp; \
      chmod 777 /run/ -R &amp;&amp; \
      chmod 777 /root/ -R &amp;&amp; \
      pip2 install --upgrade pip &amp;&amp; \
      pip2 install -r ${APP_DIR}/requirements.txt &amp;&amp; \
      apk del .build-deps &amp;&amp; \
      rm -fR tmp/* &amp;&amp; \
      pw_migrate migrate --database=$DATABASE_CONNECTION_STRING --directory=$APP_DIR/api/migrations -v
  
  EXPOSE 80
  
  CMD nginx &amp;&amp; uwsgi --ini ${APP_DIR}/app.ini
  </code></pre>
  
  <p>For solution,  I tried to install below packages</p>
  
  <p>1) gcc package.</p>
  
  <p>2) libffi packages.</p>
  
  <p>3) pip openssl packages.</p>
  
  <p>But still error is not resolved. Any help should be appreciated</p>