# syntax=docker/dockerfile:1

FROM alpine:3.22

RUN addgroup -S iop && adduser -S iop -G iop
WORKDIR /app

COPY build/dev-corp-compose/control-plane /usr/local/bin/control-plane
COPY configs/control-plane.yaml /app/configs/control-plane.yaml

EXPOSE 18000 19080 19081

USER iop
ENTRYPOINT ["control-plane"]
CMD ["serve", "--config", "/app/configs/control-plane.yaml"]
