pro-search-api / Dockerfile
vhr1007's picture
Update Dockerfile
1c0f87b verified
raw
history blame
439 Bytes
# Base image
FROM python:3.8-slim
# Set working directory
WORKDIR /app
# Install git and other dependencies
RUN apt-get update && apt-get install -y git
# 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"]