#FROM centos:centos6.9 FROM centos:centos7 COPY root/requirements.txt / COPY root/opt/app /opt/app RUN yum install -y epel-release.noarch RUN yum install -y python-pip # Pour CentOS6 #RUN curl https://bootstrap.pypa.io/2.6/get-pip.py -o get-pip.py #RUN python get-pip.py #RUN pip install --upgrade --ignore-installed pip setuptools #RUN apk add librdkafka #RUN apk add gcc python2-dev libc-dev librdkafka-dev RUN pip install --upgrade pip RUN pip install --no-cache-dir -r /requirements.txt WORKDIR /opt/app #CMD ["gunicorn", "-w 4", "main:app"] CMD ["python", "/opt/app/run.py"]