pro-search-api / Dockerfile
vhr1007
init
500c1ba
raw
history blame
355 Bytes
# Base image
FROM python:3.8-slim
# Set working directory
WORKDIR /app
# Copy requirements.txt and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Command to run the FastAPI application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]