Mistral_Test / dockerfile.dockerfile
eesfeg's picture
newyyy
52bd739
raw
history blame contribute delete
390 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the app
COPY . .
# Expose port
EXPOSE 7860
# Run the app
CMD ["python", "app.py"]