medical-qa-api / Dockerfile
khushi1234455687's picture
Create Dockerfile
093b386 verified
raw
history blame contribute delete
374 Bytes
# βœ… Use Python base image
FROM python:3.11
# βœ… Set working directory
WORKDIR /app
# βœ… Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# βœ… Copy FastAPI script
COPY app.py .
# βœ… Expose the port used by FastAPI
EXPOSE 7860
# βœ… Run FastAPI server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]