23 lines
635 B
Docker
23 lines
635 B
Docker
FROM mcr.microsoft.com/powershell:7.5-ubuntu-24.04
|
|
|
|
USER root
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends tzdata wget \
|
|
&& wget -q https://github.com/aptible/supercronic/releases/latest/download/supercronic-linux-amd64 -O /usr/local/bin/supercronic \
|
|
&& chmod +x /usr/local/bin/supercronic \
|
|
&& apt-get dist-upgrade -y \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
USER 1000:1000
|
|
|
|
WORKDIR /data
|
|
COPY ["crontab", "/data/"]
|
|
COPY --chmod=755 ["main.sh", "/data/"]
|
|
COPY ["Start-DoneTickNotifier.ps1", "Start-DoneTickConsumer.ps1", "/data/"]
|
|
|
|
ENTRYPOINT ["/data/main.sh"]
|
|
|
|
EXPOSE 8080 |