File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,16 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
2020
2121COPY --from=builder /app $JACRED_HOME/
2222
23- RUN apk --no-cache --update add icu-libs
23+ RUN apk --no-cache --update add icu-libs && \
24+ apk add --no-cache privoxy busybox-cron
25+
26+ COPY ./entrypoint.sh /entrypoint.sh
27+
28+ COPY ./privoxy.config /etc/privoxy/config
29+
30+ COPY Data/crontab /etc/cron.d/jacred
31+ RUN chmod 0600 /etc/cron.d/jacred && \
32+ chmod +x /entrypoint.sh
2433
2534WORKDIR $JACRED_HOME
2635
@@ -30,5 +39,5 @@ HEALTHCHECK CMD wget --quiet --timeout=10 --spider http://127.0.0.1:9117 || exit
3039
3140VOLUME [ "$JACRED_HOME" ]
3241
33- ENTRYPOINT ["dotnet" , "JacRed.dll " ]
42+ ENTRYPOINT ["/entrypoint.sh " ]
3443# ## BUILD MAIN IMAGE end ###
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ dotnet JacRed.dll || exit 1
3+
4+ privoxy--no-daemon /etc/privoxy/config
5+
6+ crontab /etc/cron.d/jacred
7+ crond -f -l 8
You can’t perform that action at this time.
0 commit comments