openai-unoffical / Dockerfile
API-Handler's picture
Upload 2 files
17a52a8 verified
raw
history blame contribute delete
623 Bytes
FROM python:3.10
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/api_handler.py
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/main.py
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/models.py
RUN wget https://huggingface.co/datasets/API-Handler/openai-unoffical/resolve/main/requirements.txt
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]