From 57cf1cc8f892867308e5984564cb49b75911ab07 Mon Sep 17 00:00:00 2001 From: Sohail Ishaque Date: Fri, 3 May 2024 18:33:48 +0500 Subject: [PATCH] Update Dockerfile.dev Initialization of the poetry to create pyproject.toml file --- .../14_docker/02_containerization/Dockerfile.dev | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/05_microservices_all_in_one_platform/14_docker/02_containerization/Dockerfile.dev b/05_microservices_all_in_one_platform/14_docker/02_containerization/Dockerfile.dev index 5cfb2b7a..915b1d21 100644 --- a/05_microservices_all_in_one_platform/14_docker/02_containerization/Dockerfile.dev +++ b/05_microservices_all_in_one_platform/14_docker/02_containerization/Dockerfile.dev @@ -13,6 +13,9 @@ RUN apt-get update && apt-get install -y \ # Install Poetry RUN pip install poetry +# Initializing the Poetry to create pyproject.toml file +RUN poetry init + # Copy the current directory contents into the container at /code COPY . /code/ @@ -26,4 +29,4 @@ RUN poetry install EXPOSE 8000 # Run the app. CMD can be overridden when starting the container -CMD ["poetry", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--reload"] \ No newline at end of file +CMD ["poetry", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--reload"]