LLM-7B-GGUF-Chat-V1 / Dockerfile
chenhaodev's picture
Update Dockerfile
8d21ab4 verified
raw
history blame contribute delete
664 Bytes
# Use an alias for the base image for easier updates
FROM python:3.10 as base
# Set model
ENV MODEL=mlabonne/UltraMerge-7B-GGUF
ENV QUANT=Q6_K
ENV CHAT_TEMPLATE=chatml
# Set the working directory
WORKDIR /app
# Install Python requirements
COPY ./requirements.txt /app/
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Download model
RUN MODEL_NAME_FILE=$(echo ${MODEL#*/} | tr '[:upper:]' '[:lower:]' | sed 's/-gguf$//') && \
wget https://huggingface.co/mradermacher/UltraMerge-7B-GGUF/resolve/main/UltraMerge-7B.Q6_K.gguf -O model.gguf
# Copy the rest of your application
COPY . .
# Command to run the application
CMD ["python", "app.py"]