Skip to content

Commit

Permalink
testing cron
Browse files Browse the repository at this point in the history
  • Loading branch information
Piao committed Aug 13, 2024
1 parent 94a8722 commit 55f56d8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 55f56d8

Please sign in to comment.