File size: 399 Bytes
3426410 e715c63 3426410 7da8ee1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Use official CUDA 12.1 image with Ubuntu
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Upgrade pip
RUN pip3 install --upgrade pip
# Copy Python dependencies
ADD requirements.txt .
RUN pip3 install -r requirements.txt
# Expose port
EXPOSE 7860
# Copy application code
COPY app ./app
# Run the application
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|