# Use Unsloth's official Docker image FROM unsloth/unsloth # Set our working directory WORKDIR /app # Install dependencies for the chat interface # (Unsloth image has most, but we ensure these are present) RUN pip install --no-cache-dir \ transformers \ accelerate \ bitsandbytes \ protobuf \ sentencepiece # Copy ONLY the chat script COPY Final-chat.py /app/Final-chat.py # Set environment variables to suppress warnings ENV TERM=xterm-256color ENV TRANSFORMERS_VERBOSITY=error # The Default Command: Launch the chat immediately ENTRYPOINT ["python", "Final-chat.py"]