You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portal-oddajanje-solar/Dockerfile

16 lines
527 B

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
WORKDIR /usr/src/portal-webapp
RUN apt-get update && apt-get -y install wkhtmltopdf python3-pdfkit && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install --no-cache-dir flask flask-dropzone gunicorn pdfkit
CMD ["gunicorn", "--bind", "0.0.0.0:80", "-w", "1", "--access-logfile", "-", "app:app"]