mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-23 11:01:47 +02:00
Allow docker builds in non empty directories and fix packaging missing for python
This commit is contained in:
parent
db5e67c726
commit
2786e41e41
@ -1,3 +1,4 @@
|
|||||||
|
#see github workflows for docker build command
|
||||||
FROM python:3.11-slim-bullseye
|
FROM python:3.11-slim-bullseye
|
||||||
LABEL src=https://github.com/django-helpdesk/django-helpdesk
|
LABEL src=https://github.com/django-helpdesk/django-helpdesk
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
@ -6,7 +7,10 @@ RUN apt-get install -yqq \
|
|||||||
postgresql-client \
|
postgresql-client \
|
||||||
cron \
|
cron \
|
||||||
git
|
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/requirements.txt
|
||||||
RUN pip3 install -r /opt/django-helpdesk/standalone/requirements.txt
|
RUN pip3 install -r /opt/django-helpdesk/standalone/requirements.txt
|
||||||
WORKDIR /opt/django-helpdesk
|
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 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
|
RUN chmod 0644 /etc/crontab
|
||||||
ENTRYPOINT sh /opt/django-helpdesk/standalone/entrypoint.sh
|
ENTRYPOINT sh /opt/django-helpdesk/standalone/entrypoint.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user