Interactive-mode / Dockerfile
KRISH09bha's picture
Update Dockerfile
f80d2cf verified
raw
history blame
496 Bytes
# Use official Python image as base
FROM python:3.10
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file
COPY requirements.txt .
# Install dependencies
RUN apt-get update && apt-get install -y libgl1-mesa-glx \
&& pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Expose the API port
EXPOSE 7860
# Run the application using Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]