Skip to content

Commit 29cbef1

Browse files
committed
Update Dockerfile
1 parent 21965b3 commit 29cbef1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# ### BUILD MAIN IMAGE START ###
22
FROM ubuntu
33

4+
ENV JACRED_HOME=/home/jacred
5+
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
6+
47
RUN apt update && apt -y install curl systemd tor tor-geoipdb privoxy
58
COPY ./privoxy.config /etc/privoxy/config
69

@@ -17,5 +20,5 @@ EXPOSE 9117
1720

1821
VOLUME [ "/home/jacred/init.conf", "/home/jacred/Data" ]
1922

20-
ENTRYPOINT ["/lib/systemd/systemd"]
23+
ENTRYPOINT ["/entrypoint.sh"]
2124
### BUILD MAIN IMAGE end ###

entrypoint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
systemctl start tor
3+
systemctl enable tor
4+
systemctl start privoxy
5+
systemctl enable privoxy
6+
7+
dotnet JacRed.dll || exit 1
8+
9+
crond -f -l 8

0 commit comments

Comments
 (0)