FROM mcr.microsoft.com/powershell:7.5-ubuntu-24.04

USER root

RUN apt-get update \
    && apt-get install -y --no-install-recommends ca-certificates \
    && apt-get dist-upgrade -y \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

USER 1000:1000

WORKDIR /data
COPY ["Start-DoneTickNotifier.ps1", "/data/"]

ENTRYPOINT ["pwsh", "-Command", "/data/Start-DoneTickNotifier.ps1"]
