# The UniFi simulator: a controller on 8443 and a switch without one on 2222.
# Build from the repository root:  docker build -f sim/Dockerfile -t unifi-sim .
FROM python:3.12-slim

RUN pip install --no-cache-dir "paramiko>=5.0.0" "cryptography>=43"

WORKDIR /app
COPY sim/unifi_sim /app/unifi_sim
COPY tests/fixtures /app/fixtures

USER nobody
EXPOSE 8443 2222
ENTRYPOINT ["python", "-m", "unifi_sim", "--host", "0.0.0.0", "--fixtures", "/app/fixtures"]
