FocusDesk_Ai_Server / Dockerfile
learnopolis's picture
Create Dockerfile
43e1a4a verified
Raw
History Blame Contribute Delete
406 Bytes
FROM python:3.10
# Set up a working directory
WORKDIR /code
# Copy the requirements and install them
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy all your Python files into the container
COPY . .
# Run the FastAPI server on Hugging Face's required port (7860)
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]