ghostMalone / Dockerfile
francischung222's picture
Initial commit
b11a5e9
raw
history blame
568 Bytes
FROM python:3.10-slim
# Accept API key as build arg
ARG ANTHROPIC_API_KEY
ENV ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python packages
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port 7860 (Gradio default)
EXPOSE 7860
# Set environment variable for Gradio
ENV GRADIO_SERVER_NAME="0.0.0.0"
# Run the app
CMD ["python", "app.py"]