EPyT_Open-LLM / Dockerfile
razaali10's picture
Update Dockerfile
e54c37b verified
raw
history blame contribute delete
506 Bytes
# Base Python image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system-level packages
RUN apt-get update && apt-get install -y git && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Set Matplotlib config to avoid permission issues
ENV MPLCONFIGDIR=/tmp/mplcache
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY app.py .
# Required for HF Spaces
EXPOSE 7860
# Run the app
CMD ["python", "app.py"]