test / Dockerfile
TahaRasouli's picture
Update Dockerfile
0ac981f verified
raw
history blame
386 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 -r requirements.txt
# Install uvicorn
RUN pip install uvicorn
# Install dependencies
COPY . /app
ENTRYPOINT ["uvicorn", "main:app"]
CMD ["--host", "0.0.0.0", "--port", "7860"]
CMD ["python", "main.py" ]