portal-oddajanje-solar/Dockerfile

13 lines
412 B
Docker
Raw Normal View History

2020-10-23 10:22:04 +00:00
FROM python:3.9
COPY app.py /usr/src/portal-webapp/
COPY config.ini /usr/src/portal-webapp/
2020-10-23 10:22:04 +00:00
COPY templates /usr/src/portal-webapp/templates
COPY static /usr/src/portal-webapp/static
COPY contract/ /usr/src/portal-webapp/contract
2020-10-23 10:22:04 +00:00
WORKDIR /usr/src/portal-webapp
RUN pip install --no-cache-dir flask flask-dropzone gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:80", "-w", "1", "--access-logfile", "-", "app:app"]