Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docker): add dockerfile #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

sammcj
Copy link
Contributor

@sammcj sammcj commented Oct 13, 2024

Example docker-compose.yaml:

services:
  &name localgpt-vision:
    container_name: *name
    hostname: *name
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - /path/to/your/storage/localgpt-vision/.byaldi:/app/.byaldi
      - /path/to/your/storage/localgpt-vision/uploaded_documents:/app/uploaded_documents
      - /path/to/your/storage/localgpt-vision/hfcache:/home/app/.cache/huggingface
      - /path/to/your/storage/localgpt-vision/sessions:/app/sessions
    ports:
      - 5050:5050
    security_opt:
      - no-new-privileges:true
    restart: unless-stopped
    runtime: nvidia
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: ["compute", "utility", "graphics"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant