1.78bapi / Dockerfile
tfqdeadlo's picture
Update Dockerfile
726d571 verified
Raw
History Blame Contribute Delete
309 Bytes
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# Ye command background mein pinger chalayegi aur foreground mein app
CMD ["sh", "-c", "python pinger.py & uvicorn app:app --host 0.0.0.0 --port 7860"]