Add local MarianMT translation service

This commit is contained in:
Adolfo Reyna
2026-08-14 12:40:58 -04:00
parent 65a4178e2b
commit c257fd1ec7
8 changed files with 211 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY server.py ./
ENV MARIAN_HOST=0.0.0.0
ENV TRANSFORMERS_CACHE=/models
VOLUME ["/models"]
EXPOSE 8000
CMD ["python", "server.py"]