Spaces:
Sleeping
Sleeping
FROM python:3.9-slim | |
WORKDIR /code | |
COPY ./requirements.txt /code/requirements.txt | |
COPY ./api.py /code/api.py | |
COPY ./json_parser.py /code/json_parser.py | |
COPY ./logger_config.py /code/logger_config.py | |
COPY ./response_formatter.py /code/response_formatter.py | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
EXPOSE 7860 | |
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"] |