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: add dockerfile #26

Merged
merged 7 commits into from
Dec 5, 2024
Merged

feat: add dockerfile #26

merged 7 commits into from
Dec 5, 2024

Conversation

kwaa
Copy link
Contributor

@kwaa kwaa commented Dec 5, 2024

has been tested with the following docker-compose.yml:

services:
  auralis:
    container_name: auralis
    build:
      context: .
      tags:
        - auralis:latest
    network_mode: host
    restart: unless-stopped
    deploy:
      resources:
        reservations:
          devices:
          - driver: cdi
            capabilities: [gpu]
            device_ids:
            - nvidia.com/gpu=all
    command: --host 127.0.0.1 --port 8001 --model AstraMindAI/xttsv2 --gpt_model AstraMindAI/xtts2-gpt --max_concurrency 8 --vllm_logging_level warn

@kwaa
Copy link
Contributor Author

kwaa commented Dec 5, 2024

I installed langid in Dockerfile because this repository imports langid, but did not add it to the dependencies. You can update the dependency list later and remove it normally.

- # ModuleNotFoundError: No module named 'langid'
- RUN --mount=type=cache,target=/root/.cache/pip python -m pip install langid /app
+ RUN --mount=type=cache,target=/root/.cache/pip python -m pip install /app

@mlinmg
Copy link
Contributor

mlinmg commented Dec 5, 2024

Cool, thanks

@mlinmg mlinmg merged commit a360011 into astramind-ai:main Dec 5, 2024
@kwaa kwaa deleted the feat/docker branch December 12, 2024 10:20
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.

2 participants