Try copying full source tree before installing requirements

This commit is contained in:
Timothy Hobbs 2024-07-21 21:54:44 +02:00
parent c0c0f2be5d
commit a2b50919c2
2 changed files with 2 additions and 3 deletions

1
.dockerignore Executable file
View File

@ -0,0 +1 @@
db/

View File

@ -6,11 +6,9 @@ RUN apt-get install -yqq \
postgresql-client \ postgresql-client \
cron \ cron \
git git
COPY requirements.txt /opt/django-helpdesk/requirements.txt COPY . /opt/
COPY standalone/requirements.txt /opt/django-helpdesk/standalone/requirements.txt
RUN pip3 install -r /opt/django-helpdesk/requirements.txt RUN pip3 install -r /opt/django-helpdesk/requirements.txt
RUN pip3 install -r /opt/django-helpdesk/standalone/requirements.txt RUN pip3 install -r /opt/django-helpdesk/standalone/requirements.txt
COPY . /opt/django-helpdesk
WORKDIR /opt/django-helpdesk WORKDIR /opt/django-helpdesk
RUN pip3 install -e . RUN pip3 install -e .
RUN DJANGO_HELPDESK_SECRET_KEY=foo python3 standalone/manage.py collectstatic RUN DJANGO_HELPDESK_SECRET_KEY=foo python3 standalone/manage.py collectstatic