LLMINTROGROQ / Dockerfile
mominah's picture
Update Dockerfile
424a66d verified
raw
history blame contribute delete
502 Bytes
# Use official Python slim image
FROM python:3.11-slim
# Unbuffered stdout/stderr for real-time logs
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose FastAPI port
EXPOSE 7860
# Start the app with Uvicorn
# Ensure GROQ_API_KEY is provided as an environment variable at runtime
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]