Files
KX-Bridge-Release/Dockerfile

23 lines
535 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY kobrax_moonraker_bridge.py .
COPY config_loader.py .
COPY env_loader.py .
COPY kobrax_client.py .
COPY anycubic_slicer.crt .
COPY anycubic_slicer.key .
COPY config.ini.example /app/config/config.ini.example
# config/ is a volume mount point on first start, config.ini is migrated from .env
# if no config.ini exists yet.
RUN mkdir -p /app/config
EXPOSE 7125
ENTRYPOINT ["python", "kobrax_moonraker_bridge.py"]