change docker entrypoint to clear content

This commit is contained in:
Zeecka
2025-12-31 05:28:58 +01:00
parent fc02dcab80
commit ddce01ec8d
4 changed files with 25 additions and 17 deletions
+1 -1
View File
@@ -42,4 +42,4 @@ RUN apt-get remove -y wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "--capture-output", "aperisolve.wsgi:application"]
CMD ["sh", "-c", "rm -rf /aperisolve/results/* && gunicorn -w 4 -b 0.0.0.0:5000 --access-logfile - --error-logfile - --log-level info --capture-output aperisolve.wsgi:application"]