FROM python:3.12-slim

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    ONEC_AGENT_HOST=0.0.0.0 \
    ONEC_AGENT_PORT=8090

WORKDIR /app
RUN pip install --no-cache-dir pyyaml==6.0.2
COPY scripts /app/scripts
COPY plugins/1c /app/plugins/1c
COPY config /app/config
COPY core /app/core
COPY registry /app/registry

EXPOSE 8090

CMD ["python", "/app/plugins/1c/agent/agent_server.py", "--host", "0.0.0.0", "--port", "8090"]
