|
|
@ -29,14 +29,8 @@ WORKDIR /app |
|
|
|
|
|
|
|
|
|
|
|
RUN pip install --upgrade pip |
|
|
|
RUN pip install --upgrade pip |
|
|
|
RUN pip install gunicorn |
|
|
|
RUN pip install gunicorn |
|
|
|
|
|
|
|
RUN pip install flit |
|
|
|
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt |
|
|
|
RUN flit install --pth-file |
|
|
|
RUN pip install . |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# switch back to root to remove header files |
|
|
|
|
|
|
|
#USER root |
|
|
|
|
|
|
|
#RUN apk del libc-dev libffi-dev openssl-dev python3-dev |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# switch to the created user to run the application |
|
|
|
|
|
|
|
#USER deploy |
|
|
|
|
|
|
|
CMD ["gunicorn", "--paster", "/app/production.ini", "-b", "0.0.0.0:8000"] |
|
|
|
CMD ["gunicorn", "--paster", "/app/production.ini", "-b", "0.0.0.0:8000"] |
|
|
|