Add Flask webhook
This commit is contained in:
@ -2,9 +2,10 @@ FROM python:3-alpine
|
||||
|
||||
COPY requirements.txt /code/requirements.txt
|
||||
RUN pip install -r /code/requirements.txt
|
||||
RUN echo '*/5 * * * * python3 /code/main.py' | crontab -
|
||||
RUN echo '0 1,13 * * * python3 /code/main.py' | crontab -
|
||||
COPY . /code
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
CMD ["/usr/sbin/crond", "-f", "-d", "0"]
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT ["/code/entrypoint.sh"]
|
||||
|
Reference in New Issue
Block a user