Question-textractor / Dockerfile
CwAnkit07's picture
Create Dockerfile
f0f8ae9 verified
raw
history blame
374 Bytes
# Use Official Python Image
FROM python:3.9
# Set Working Directory
WORKDIR /app
# Copy Files
COPY requirements.txt requirements.txt
COPY app.py app.py
# Install Dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose Port 7860 (Used by Hugging Face)
EXPOSE 7860
# Start FastAPI Server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]