app.py / Dockerfile
ghstedpixel's picture
Update Dockerfile
ee4f5ec verified
Raw History Blame
388 Bytes
FROM python:3.11-slim
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy all the loose files from your root repo straight into the container
COPY . /code/
EXPOSE 7860
# Direct Uvicorn to run main:app from the root directory context
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]