FROM python:3-alpine

COPY requirements.txt /code/requirements.txt
RUN pip install -r /code/requirements.txt
RUN echo '0 1,13 * * * python3 /code/main.py' | crontab -
COPY . /code

WORKDIR /code

EXPOSE 5000
ENTRYPOINT ["/code/entrypoint.sh"]