Skip to content

Commit 539fcca

Browse files
committed
Update Dockerfile
1 parent b76ee2e commit 539fcca

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1+
ARG DOTNET_VERSION=9.0
2+
13
# ### BUILD MAIN IMAGE START ###
2-
FROM ubuntu
4+
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}
5+
6+
ENV JACRED_HOME=/home/jacred
7+
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
38

49
RUN apt update && apt -y install curl systemd tor tor-geoipdb privoxy
510
COPY ./privoxy.config /etc/privoxy/config
611

712
COPY ./install.sh /
813
COPY ./update.sh /
14+
COPY ./entrypoint.sh /
915

1016
RUN sh /install.sh
1117

18+
RUN chmod +x /entrypoint.sh
19+
1220
WORKDIR /home/jacred
1321

1422
RUN crontab Data/crontab

entrypoint.sh

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

install.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ DEST="/home/jacred"
55
# sudo su -
66
apt update && apt install -y wget unzip
77

8-
# Install .NET
9-
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod 755 dotnet-install.sh
10-
./dotnet-install.sh --channel 9.0 --install-dir /usr/share/dotnet
11-
ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
12-
138
# Download zip
149
mkdir $DEST -p && cd $DEST
1510
wget https://github.com/immisterio/jacred-fdb/releases/latest/download/publish.zip

0 commit comments

Comments
 (0)