nmt-translator / Dockerfile
Soha368's picture
Fix Dockerfile: separate torch install from other deps
2b2cee2
raw
history blame contribute delete
286 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
RUN pip install --no-cache-dir \
flask \
pyyaml \
joeynmt \
subword-nmt \
importlib_metadata
COPY . .
EXPOSE 7860
CMD ["python", "app.py"]