grably-api / Dockerfile
indiandelhidarbar1-crypto
switch to docker sdk
6b5f60e
Raw History Blame Contribute Delete
453 Bytes
FROM python:3.12-slim
WORKDIR /code
# Install system dependencies
COPY packages.txt .
RUN apt-get update && \
apt-get install -y $(cat packages.txt) && \
rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy application code
COPY . .
# Run the FastAPI application using uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]