HyperFlow / Dockerfile
Gaurav711's picture
deploy: revert to 733e96b
d491dc1
Raw
History Blame Contribute Delete
510 Bytes
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install system dependencies if needed
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install python requirements
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project source code
COPY . .
# Expose FastAPI default port
EXPOSE 7860
# Command to run uvicorn server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]