diff --git a/docker/Admin.Dockerfile b/docker/Admin.Dockerfile index 249c716d8..14d372f41 100644 --- a/docker/Admin.Dockerfile +++ b/docker/Admin.Dockerfile @@ -7,6 +7,7 @@ RUN pip install --upgrade pip && pip install poetry && poetry export -o requirem COPY ./code/backend /usr/local/src/myscripts/admin COPY ./code/backend/batch/utilities /usr/local/src/myscripts/utilities WORKDIR /usr/local/src/myscripts/admin -ENV PYTHONPATH "${PYTHONPATH}:/usr/local/src/myscripts/" +# https://github.com/docker/buildx/issues/2751 +ENV PYTHONPATH="${PYTHONPATH}:/usr/local/src/myscripts/" EXPOSE 80 -CMD ["streamlit", "run", "Admin.py", "--server.port", "80", "--server.enableXsrfProtection", "false"] \ No newline at end of file +CMD ["streamlit", "run", "Admin.py", "--server.port", "80", "--server.enableXsrfProtection", "false"] diff --git a/docker/Frontend.Dockerfile b/docker/Frontend.Dockerfile index d72cf6965..4715d93fa 100644 --- a/docker/Frontend.Dockerfile +++ b/docker/Frontend.Dockerfile @@ -19,6 +19,7 @@ RUN pip install --upgrade pip && pip install poetry uwsgi && poetry export -o re COPY ./code/*.py /usr/src/app/ COPY ./code/backend /usr/src/app/backend COPY --from=frontend /home/node/app/dist/static /usr/src/app/static/ -ENV PYTHONPATH "${PYTHONPATH}:/usr/src/app" +# https://github.com/docker/buildx/issues/2751 +ENV PYTHONPATH="${PYTHONPATH}:/usr/src/app" EXPOSE 80 CMD ["uwsgi", "--http", ":80", "--wsgi-file", "app.py", "--callable", "app", "-b", "32768", "--http-timeout", "230"]