LibreTranslateΒΆ

git clone --depth=1 https://github.com/LibreTranslate/LibreTranslate
cd LibreTranslate
pipx install hatch
hatch run dev --debug
uv venv .LibreTranslate
source .LibreTranslate/bin/activate
uv pip install libretranslate
git clone https://github.com/LibreTranslate/LibreTranslate
cd LibreTranslate
cp docker-compose.yml docker-compose.yml.bak
vim docker-compose.yml
version: '3.8'

services:
  libretranslate:
    container_name: libretranslate
    # image: libretranslate/libretranslate
    build:
      context: .
      dockerfile: ./docker/Dockerfile
    restart: unless-stopped
    ports:
      - "5000:5000"
    healthcheck:
      test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
    environment:
      LT_HOST: 0.0.0.0
      LT_UPDATE_MODELS: 'true'
      LT_LOAD_ONLY: en,zh
    volumes:
    	- /mnt/nvme/share/argos-translate/packages:/home/libretranslate/.local:rw
sudo docker compose up -d