From 43a2a4fd021b87f77016b112f990723e3f157c57 Mon Sep 17 00:00:00 2001 From: Ross Smith Date: Wed, 6 Nov 2024 23:03:35 +0000 Subject: [PATCH] fix: Use new docker syntax for ENV (#1465) --- docker/Admin.Dockerfile | 5 +++-- docker/Frontend.Dockerfile | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) 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"]