textgeneration / Dockerfile
Yash Sachdeva
question_paper
dcd2d54
raw
history blame
342 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt ./requirements.txt
RUN apt-get update && apt-get -y install libpq-dev gcc && pip install psycopg2
RUN pip install uvicorn
RUN pip install -r requirements.txt
COPY . /app
ENTRYPOINT [“uvicorn”, question_paper:app”]
CMD [“ — host”, “0.0.0.0”, “ — port”, “7860”]