|
|
|
FROM python:3.8-buster |
|
|
|
|
|
RUN apt-get update && apt-get install -y wget |
|
|
|
|
|
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb |
|
|
|
|
|
RUN apt-get install -y --no-install-recommends ./wkhtmltox_0.12.6-1.buster_amd64.deb |
|
|
|
|
|
COPY requirements.txt /app/ |
|
|
|
|
|
WORKDIR /app/ |
|
|
|
|
|
RUN pip install -r requirements.txt |
|
|
|
|
|
COPY src/ /app/src/ |
|
COPY app.py /app/ |
|
|
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD ["python3", "-m" ,"streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"] |
|
|
|
|