19 lines
730 B
Docker
19 lines
730 B
Docker
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==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, PyJWT
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|