nivra-text-diagnosis / Dockerfile
datdevsteve's picture
Create Dockerfile
32d6681 verified
raw
history blame contribute delete
382 Bytes
# Use official Python image
FROM python:3.10.9
# Set working directory
WORKDIR /app
# Copy requirements
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy application code
COPY . .
# Expose port 7860
EXPOSE 7860
# Start FastAPI with Uvicorn
CMD ["uvicorn", "api_main:app", "--host", "0.0.0.0", "--port", "7860"]