diff --git a/Dockerfile b/Dockerfile index af80288..005a134 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,9 @@ 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 && \ +RUN apt-get update && apt-get -y install wkhtmltopdf && \ rm -rf /var/lib/apt/lists/* -RUN pip3 install --no-cache-dir flask flask-dropzone gunicorn pdfkit +RUN pip3 install --no-cache-dir pdfkit flask flask-dropzone gunicorn pdfkit CMD ["gunicorn", "--bind", "0.0.0.0:80", "-w", "1", "--access-logfile", "-", "app:app"] diff --git a/app.py b/app.py index 1dd90a8..847d2a2 100644 --- a/app.py +++ b/app.py @@ -81,7 +81,7 @@ app.config.update( dropzone = Dropzone(app) -@app.route('/') +@app.route(URL_ROOT) def index(): return render_template('index.html') diff --git a/contract/template.html b/contract/template.html index d45eca6..7c28421 100644 --- a/contract/template.html +++ b/contract/template.html @@ -1,6 +1,8 @@
+ +