diff --git a/apps/central_storage/Dockerfile b/apps/central_storage/Dockerfile index fd7d0cf..fbf07c1 100644 --- a/apps/central_storage/Dockerfile +++ b/apps/central_storage/Dockerfile @@ -35,4 +35,5 @@ COPY . ${CONTAINER_APP_ROOT} #RUN ln -s /bin/bash /usr/bin/bash EXPOSE ${SERVICE_API_ACCESS_PORT} -CMD ["uvicorn", "webapi.main:app", "--reload", "--port=${SERVICE_API_ACCESS_PORT}", "--host=${SERVICE_API_ACCESS_HOST}"] +# Using shell to expand environemnt to enure pass the actual environment value to uvicorn +CMD uvicorn webapi.main:app --reload --port=$SERVICE_API_ACCESS_PORT --host=$SERVICE_API_ACCESS_HOST diff --git a/apps/content/Dockerfile b/apps/content/Dockerfile index 2b4b2fd..bfad1fd 100644 --- a/apps/content/Dockerfile +++ b/apps/content/Dockerfile @@ -35,4 +35,5 @@ COPY . ${CONTAINER_APP_ROOT} #RUN ln -s /bin/bash /usr/bin/bash EXPOSE ${SERVICE_API_ACCESS_PORT} -CMD ["uvicorn", "webapi.main:app", "--reload", "--port=${SERVICE_API_ACCESS_PORT}", "--host=${SERVICE_API_ACCESS_HOST}"] +# Using shell to expand environemnt to enure pass the actual environment value to uvicorn +CMD uvicorn webapi.main:app --reload --port=$SERVICE_API_ACCESS_PORT --host=$SERVICE_API_ACCESS_HOST \ No newline at end of file diff --git a/apps/notification/Dockerfile b/apps/notification/Dockerfile index cf60fab..b246de3 100644 --- a/apps/notification/Dockerfile +++ b/apps/notification/Dockerfile @@ -34,4 +34,5 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . ${CONTAINER_APP_ROOT} EXPOSE ${SERVICE_API_ACCESS_PORT} -CMD ["uvicorn", "webapi.main:app", "--reload", "--port=${SERVICE_API_ACCESS_PORT}", "--host=${SERVICE_API_ACCESS_HOST}"] +# Using shell to expand environemnt to enure pass the actual environment value to uvicorn +CMD uvicorn webapi.main:app --reload --port=$SERVICE_API_ACCESS_PORT --host=$SERVICE_API_ACCESS_HOST \ No newline at end of file diff --git a/apps/payment/Dockerfile b/apps/payment/Dockerfile index 756a34b..f5ac56d 100644 --- a/apps/payment/Dockerfile +++ b/apps/payment/Dockerfile @@ -29,5 +29,5 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . ${CONTAINER_APP_ROOT} EXPOSE ${SERVICE_API_ACCESS_PORT} -#CMD ["uvicorn", "webapi.main:app", "--reload", "--port=${SERVICE_API_ACCESS_PORT}", "--host=${SERVICE_API_ACCESS_HOST}"] +# Using shell to expand environemnt to enure pass the actual environment value to uvicorn CMD uvicorn webapi.main:app --reload --port=${SERVICE_API_ACCESS_PORT} --host=${SERVICE_API_ACCESS_HOST} \ No newline at end of file