Advanced Threat Protection

 View Only

 Schedule Python API not working on docker

selena nur's profile image
selena nur posted Oct 06, 2020 01:24 AM

I'm trying to create a bot on the telegram, which sends scheduled messages using the schedule. And works fine running directly, but when I build in docker, just the schedule don't work. Python API not working on docker

Dockerfile

FROM python:3 WORKDIR /usr/src/app COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD [ "python", "./example.py" ]