stealth / Dockerfile
Adityabhaskar's picture
Create Dockerfile
1c90d05 verified
raw
history blame
499 Bytes
# Use an official Python runtime as a parent image
FROM python:3.10-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Run the app using Gunicorn
# Cloud Run provides the $PORT environment variable
CMD ["gunicorn", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:$PORT", "app:demo"]