From 55f56d8a5a0cfbbb17b65b83a6ac7b646d1ebe06 Mon Sep 17 00:00:00 2001 From: Piao Date: Tue, 13 Aug 2024 10:17:41 +0100 Subject: [PATCH] testing cron --- server/Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index 94bb609..c0ccf32 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -51,10 +51,11 @@ COPY ./cronjob/prediction-cron /etc/cron.d/prediction-cron RUN chmod 0644 /etc/cron.d/prediction-cron # Add log RUN touch /var/log/cron.log -CMD /usr/sbin/cron -f && tail -f /var/log/cron.log +#CMD /usr/sbin/cron -f && tail -f /var/log/cron.log -EXPOSE 8080 - -ENTRYPOINT ["python3"] +#EXPOSE 8080 -CMD ["-m", "openapi_server"] +#ENTRYPOINT ["python3"] +#CMD ["-m", "openapi_server"] +CMD cron && tail -f /var/log/cron.log & python3 -m openapi_server +EXPOSE 8080