LLM_Ariphes / Dockerfile
Euryeth's picture
Update Dockerfile
2f5c6d5 verified
raw
history blame contribute delete
592 Bytes
FROM python:3.9
# Install system dependencies (GGUF models might also need libstdc++)
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libstdc++6 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set cache directory for Hugging Face
RUN mkdir -p /tmp/cache && chmod 777 /tmp/cache
ENV HF_HOME=/tmp/cache
# Set working directory and copy all files
WORKDIR /app
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose correct port for HF Spaces
EXPOSE 8080
# Start your application
CMD ["python", "app.py"]