Merge branch 'API-rest' of https://gitea.prod.resk-u.ch/CLERC/Reskreen into API-rest
This commit is contained in:
@@ -3,9 +3,10 @@ FROM python:alpine3.19
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
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 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
|
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
|
EXPOSE 8080
|
||||||
|
|
||||||
#CMD ["python", "manage.py", "runserver", "0.0.0.0: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
0
startup.sh
Normal file → Executable file
Reference in New Issue
Block a user