2020-10-23 10:22:04 +00:00
|
|
|
FROM python:3.9
|
|
|
|
|
2021-03-24 10:05:36 +00:00
|
|
|
COPY entrypoint.sh /usr/src/portal-webapp/
|
2020-10-23 10:22:04 +00:00
|
|
|
COPY app.py /usr/src/portal-webapp/
|
2021-02-19 18:03:01 +00:00
|
|
|
COPY config.ini /usr/src/portal-webapp/
|
2020-10-23 10:22:04 +00:00
|
|
|
COPY templates /usr/src/portal-webapp/templates
|
2021-02-19 18:03:01 +00:00
|
|
|
COPY static /usr/src/portal-webapp/static
|
|
|
|
COPY contract/ /usr/src/portal-webapp/contract
|
2021-03-10 19:01:21 +00:00
|
|
|
COPY portal/ /usr/src/portal-webapp/portal
|
2021-03-24 10:05:36 +00:00
|
|
|
COPY migrations// /usr/src/portal-webapp/migrations
|
2020-10-23 10:22:04 +00:00
|
|
|
WORKDIR /usr/src/portal-webapp
|
|
|
|
|
2021-02-21 14:16:40 +00:00
|
|
|
RUN apt-get update && apt-get -y install wkhtmltopdf && \
|
2021-02-20 19:07:21 +00:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2021-05-17 12:55:36 +00:00
|
|
|
RUN pip3 install --no-cache-dir pdfkit flask==1.1.4 flask-dropzone flask-log-request-id flask-login Flask-SQLAlchemy alembic flask-migrate==2.7.0 Flask-script psycopg2 gunicorn pdfkit Werkzeug==1.0.1
|
2020-10-23 10:22:04 +00:00
|
|
|
|
2021-03-24 10:05:36 +00:00
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|