This commit is contained in:
2024-04-12 16:49:22 +00:00
parent 7de1f44f7d
commit 5ca98c1611
2 changed files with 5 additions and 4 deletions

View File

@@ -3,9 +3,10 @@ FROM python:alpine3.19
WORKDIR /app
COPY . .
COPY crons_jobs /etc/cron.d/django_crons_jobs
#COPY crons_jobs /etc/cron.d/django_crons_jobs
#RUN apk update && apk install cron
RUN chmod 0644 /etc/cron.d/django_crons_jobs && crontab /etc/cron.d/django_crons_jobs && touch /var/log/cron.log
#RUN chmod 0644 /etc/cron.d/django_crons_jobs && crontab /etc/cron.d/django_crons_jobs && touch /var/log/cron.log
RUN chmod +x startup.sh
RUN apk update && apk add --no-cache mariadb-connector-c-dev && apk add --no-cache gcc musl-dev openrc
@@ -16,6 +17,6 @@ RUN python manage.py makemigrations && python manage.py migrate
EXPOSE 8080
#CMD ["python", "manage.py", "runserver", "0.0.0.0:8080"]
#CMD ["crond","-f"]
#CMD ["./startup.sh"]
ENTRYPOINT [ "startup.sh" ]
ENTRYPOINT [ "/app/startup.sh" ]

0
startup.sh Normal file → Executable file
View File