From a2b50919c20bf229b9b6efa4a1b2782cda088e95 Mon Sep 17 00:00:00 2001 From: Timothy Hobbs Date: Sun, 21 Jul 2024 21:54:44 +0200 Subject: [PATCH] Try copying full source tree before installing requirements --- .dockerignore | 1 + standalone/Dockerfile | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100755 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100755 index 00000000..19e01807 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +db/ diff --git a/standalone/Dockerfile b/standalone/Dockerfile index 89653db9..0d94db43 100644 --- a/standalone/Dockerfile +++ b/standalone/Dockerfile @@ -6,11 +6,9 @@ RUN apt-get install -yqq \ postgresql-client \ cron \ git -COPY requirements.txt /opt/django-helpdesk/requirements.txt -COPY standalone/requirements.txt /opt/django-helpdesk/standalone/requirements.txt +COPY . /opt/ RUN pip3 install -r /opt/django-helpdesk/requirements.txt RUN pip3 install -r /opt/django-helpdesk/standalone/requirements.txt -COPY . /opt/django-helpdesk WORKDIR /opt/django-helpdesk RUN pip3 install -e . RUN DJANGO_HELPDESK_SECRET_KEY=foo python3 standalone/manage.py collectstatic