Files
auracast-translator/Dockerfile
T
2025-03-20 12:25:01 +00:00

28 lines
763 B
Docker

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 .
# Expose the API port
EXPOSE 7999
# Run the translator server
CMD ["python", "-m", "auracast_translator.translator_server"]