Skip to content

Commit fd08d1d

Browse files
committed
fix
1 parent d223bb9 commit fd08d1d

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
2020

2121
COPY --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

2534
WORKDIR $JACRED_HOME
2635

@@ -30,5 +39,5 @@ HEALTHCHECK CMD wget --quiet --timeout=10 --spider http://127.0.0.1:9117 || exit
3039

3140
VOLUME [ "$JACRED_HOME" ]
3241

33-
ENTRYPOINT ["dotnet", "JacRed.dll"]
42+
ENTRYPOINT ["/entrypoint.sh"]
3443
### BUILD MAIN IMAGE end ###

entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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

0 commit comments

Comments
 (0)