Progress on solar implementation, switched to storing metadata in SQL database...

This commit is contained in:
msinkec
2021-03-24 11:05:36 +01:00
parent 13aad3a61a
commit 17f727f620
17 changed files with 862 additions and 248 deletions

View File

@@ -1,16 +1,18 @@
FROM python:3.9
COPY entrypoint.sh /usr/src/portal-webapp/
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
COPY migrations// /usr/src/portal-webapp/migrations
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
RUN pip3 install --no-cache-dir pdfkit flask flask-dropzone flask-log-request-id Flask-SQLAlchemy alembic flask-migrate Flask-script psycopg2 gunicorn pdfkit
CMD ["gunicorn", "--bind", "0.0.0.0:80", "-w", "1", "--access-logfile", "-", "app:app"]
ENTRYPOINT ["./entrypoint.sh"]