cc-api / Dockerfile
Severian's picture
Update Dockerfile
7cc8bc4 verified
raw
history blame
427 Bytes
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
RUN pip install -e .
EXPOSE 7860
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]