From 52d1d9dad3003ba1727ece14f11e75a0bdd6728e Mon Sep 17 00:00:00 2001 From: Kirosbr Date: Wed, 30 Oct 2024 14:52:26 +0100 Subject: [PATCH] update dockerfile --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ae6b20c..3d977ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,13 +10,15 @@ RUN chmod 0644 /etc/cron.d/django_crons_jobs && crontab /etc/cron.d/django_crons RUN apk update && apk add --no-cache mariadb-connector-c-dev && apk add --no-cache mariadb-connector-c-dev gcc g++ libxslt-dev musl-dev nodejs npm git docker libffi-dev libffi curl libxml2-dev libxslt-dev py3-lxml mariadb python3-dev -RUN python -m venv venv && source venv/bin/activate && pip install --no-cache-dir -r requirements.txt +RUN python -m venv venv \ + && . venv/bin/activate \ + && pip install --no-cache-dir -r requirements.txt RUN source venv/bin/activate && python manage.py makemigrations && python manage.py migrate EXPOSE 8080 #CMD ["python", "manage.py", "runserver", "0.0.0.0:8080"] -CMD ["./start.sh"] +CMD ["bash", "-c", "source venv/bin/activate && python manage.py runserver 0.0.0.0:8080"] #CMD ["./startup.sh"]