portal-oddajanje-solar/Dockerfile
2021-03-10 20:01:21 +01:00

17 lines
562 B
Docker

FROM python:3.9
COPY app.py /usr/src/portal-webapp/
COPY config.ini /usr/src/portal-webapp/
COPY templates /usr/src/portal-webapp/templates
COPY static /usr/src/portal-webapp/static
COPY contract/ /usr/src/portal-webapp/contract
COPY portal/ /usr/src/portal-webapp/portal
WORKDIR /usr/src/portal-webapp
RUN apt-get update && apt-get -y install wkhtmltopdf && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install --no-cache-dir pdfkit flask flask-dropzone gunicorn pdfkit
CMD ["gunicorn", "--bind", "0.0.0.0:80", "-w", "1", "--access-logfile", "-", "app:app"]