phase-ll / Dockerfile
asmaakbar's picture
update
b1be2da
Raw History Blame Contribute Delete
558 Bytes
# Use an official Python runtime as the base image
FROM python:3.11-slim
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . .
# Install any required Python packages
RUN pip install --no-cache-dir -r requirements.txt
# Make port 8000 available to the world outside this container
EXPOSE 7860
# Run the application with uvicorn, allowing forwarded headers from proxies
CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "7860", "--forwarded-allow-ips", "*"]