ARG BASE="16-jammy"
FROM ghcr.io/koush/scrypted-common:${BASE}

WORKDIR /
RUN git clone --depth=1 https://github.com/koush/scrypted

WORKDIR /scrypted/server
RUN npm install
RUN npm run build

CMD npm run serve-no-build
