Allow docker builds in non empty directories and fix packaging missing for python

This commit is contained in:
DavidVadnais 2025-03-10 15:23:18 -10:00
parent db5e67c726
commit 2786e41e41

View File

@ -1,3 +1,4 @@
#see github workflows for docker build command
FROM python:3.11-slim-bullseye
LABEL src=https://github.com/django-helpdesk/django-helpdesk
RUN apt-get update
@ -6,7 +7,10 @@ RUN apt-get install -yqq \
postgresql-client \
cron \
git
COPY . /opt/
COPY django-helpdesk /opt/django-helpdesk
RUN pip3 install --upgrade pip
RUN pip3 install packaging
RUN pip3 install -r /opt/django-helpdesk/requirements.txt
RUN pip3 install -r /opt/django-helpdesk/standalone/requirements.txt
WORKDIR /opt/django-helpdesk
@ -15,4 +19,4 @@ RUN DJANGO_HELPDESK_SECRET_KEY=foo python3 standalone/manage.py collectstatic
RUN echo "* * * * * root . /etc/env && /usr/local/bin/python3 /opt/django-helpdesk/standalone/manage.py get_email >> /var/log/cron.log 2>&1" > /etc/crontab
RUN chmod 0644 /etc/crontab
ENTRYPOINT sh /opt/django-helpdesk/standalone/entrypoint.sh
ENTRYPOINT sh /opt/django-helpdesk/standalone/entrypoint.sh