File size: 357 Bytes
0f01805
6c3caf0
0f01805
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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
# Install uvicorn
RUN pip install uvicorn
# Install dependencies
RUN pip install -r requirements.txt
COPY . /app
ENTRYPOINT ["uvicorn", "main:app"]
CMD ["--host", "0.0.0.0", "--port", "7860"]