File size: 363 Bytes
6c8a2d5
9955791
6c8a2d5
9955791
 
 
6c8a2d5
9955791
 
808d453
6c8a2d5
9955791
6c8a2d5
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.9
WORKDIR /code

# Install dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache --upgrade -r /code/requirements.txt

# Copy application code and .env file
COPY ./backend /code/backend
COPY --chown=user .env /code/

ENV PYTHONPATH=/code

CMD ["uvicorn", "backend.api.app:app", "--host", "0.0.0.0", "--port", "7860"]