openai / Dockerfile
DevsDoCode's picture
Upload Dockerfile
b25bb18 verified
raw
history blame contribute delete
489 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/DevsDoCode/openai/resolve/main/api_handler.py
RUN wget https://huggingface.co/datasets/DevsDoCode/openai/resolve/main/main.py
RUN wget https://huggingface.co/datasets/DevsDoCode/openai/resolve/main/models.py
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]