soil-space / Dockerfile
fadhilelrizanda
new
101e22b
raw
history blame contribute delete
302 Bytes
# Use a lightweight Python image
FROM python:3.10-slim
# Install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy app code
COPY . /app
WORKDIR /app
# Expose port
EXPOSE 7860
# Run the app with uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]