FROM python:3.11-slim # Install system dependencies #TODO: no git or gcc should be needed inside container -or just uninstall later - just provide a pre build lc3 package from a inhouse pip source RUN apt-get update && apt-get install -y \ git gcc # liblc3-tools \ # && rm -rf /var/lib/apt/lists/* WORKDIR /app # Copy project files COPY . . # accept new ssh server RUN sed /^StrictHostKeyChecking/d /etc/ssh/ssh_config; \ echo StrictHostKeyChecking no >> /etc/ssh/ssh_config # Install Python dependencies RUN --mount=type=cache,target=/root/.cache \ --mount=type=ssh,required=true \ pip install --no-cache-dir . # dependencies for running piper on gpu RUN --mount=type=cache,target=/root/.cache pip install --no-cache-dir onnxruntime-gpu # Expose the API port EXPOSE 7999 # Run the translator server CMD ["python", "-m", "multilang_translator.translator_server.translator_server"]