This commit is contained in:
+10
-2
@@ -3,14 +3,22 @@ FROM mcr.microsoft.com/powershell:7.5-ubuntu-24.04
|
||||
USER root
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends tzdata \
|
||||
&& 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 ["main.sh", "/data/"]
|
||||
COPY ["Start-DoneTickNotifier.ps1", "/data/"]
|
||||
COPY ["Start-DoneTickConsumer.ps1", "/data/"]
|
||||
|
||||
ENTRYPOINT ["pwsh", "-Command", "/data/Start-DoneTickNotifier.ps1"]
|
||||
RUN chmod +x /data/main.sh
|
||||
|
||||
ENTRYPOINT ["main.sh"]
|
||||
|
||||
Reference in New Issue
Block a user