Python working

This commit is contained in:
2021-11-02 22:12:25 -03:00
parent b0f7c9b2b1
commit 61448a2521
4 changed files with 58 additions and 24 deletions

View File

@ -2,17 +2,14 @@ FROM python
RUN apt-get update -y && apt-get install -y ghostscript python3-tk libgl-dev
RUN pip install flask pyyaml pypdf4 gunicorn camelot-py[cv]
RUN pip install flask pyyaml pypdf4 gunicorn camelot-py[cv] pikepdf
WORKDIR /app
COPY ./src/ /app/src/
#ENTRYPOINT ["/bin/bash"]
EXPOSE 5000
WORKDIR /app/src
CMD ["python", "app.py"]
#CMD ["gunicorn", "-b 0.0.0.0:5000", "app:app"]
CMD ["gunicorn", "-b 0.0.0.0:5000", "app:app"]