From dcde07d0ca4704019d7fd4201ee099e21f7166c2 Mon Sep 17 00:00:00 2001 From: jelmert Date: Fri, 11 Oct 2024 09:40:50 +0200 Subject: [PATCH] wait-for-it as dependency in the run stage --- .../compose/production/django/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile index d28be4a0..83d38594 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile @@ -37,8 +37,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \ # dependencies for building Python packages build-essential \ # psycopg dependencies - libpq-dev \ - wait-for-it + libpq-dev + # Requirements are installed here to ensure they will be cached. COPY ./requirements . @@ -70,6 +70,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \ libpq-dev \ # Translations dependencies gettext \ + # entrypoint + wait-for-it \ # cleaning up unused files && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ && rm -rf /var/lib/apt/lists/*