diff --git a/Dockerfile b/Dockerfile index 215a7019..a3171fe1 100755 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,8 @@ ENV PREZ_VERSION=${PREZ_VERSION} ARG VIRTUAL_ENV ENV VIRTUAL_ENV=${VIRTUAL_ENV} \ PATH=${VIRTUAL_ENV}/bin:/root/.local/bin:${PATH} +ENV FORWARDED_ALLOW_IPS='127.0.0.1' +ENV APP_ROOT_PATH='' COPY --from=base ${VIRTUAL_ENV} ${VIRTUAL_ENV} @@ -52,4 +54,5 @@ WORKDIR /app # prez module is already built as a package and installed in $VIRTUAL_ENV as a library COPY main.py pyproject.toml ./ -ENTRYPOINT uvicorn prez.app:assemble_app --factory --host=${HOST:-0.0.0.0} --port=${PORT:-8000} --proxy-headers \ No newline at end of file +ENTRYPOINT uvicorn prez.app:assemble_app --factory --host=${HOST:-0.0.0.0} --port=${PORT:-8000} --proxy-headers \ + --forwarded-allow-ips=${FORWARDED_ALLOW_IPS} --root-path "${APP_ROOT_PATH}"