Skip to content

Commit 61101fb

Browse files
committed
Update Dockerfile
1 parent 392921f commit 61101fb

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
ARG DOTNET_VERSION=9.0
2+
13
# ### BUILD MAIN IMAGE START ###
2-
FROM ubuntu
4+
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}
35

46
ENV JACRED_HOME=/home/jacred
57
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
@@ -9,9 +11,12 @@ COPY ./privoxy.config /etc/privoxy/config
911

1012
COPY ./install.sh /
1113
COPY ./update.sh /
14+
COPY ./entrypoint.sh /
1215

1316
RUN sh /install.sh
1417

18+
RUN chmod +x /entrypoint.sh
19+
1520
WORKDIR /home/jacred
1621

1722
RUN crontab Data/crontab

entrypoint.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/bin/sh
2-
systemctl start tor
32
systemctl enable tor
4-
systemctl start privoxy
3+
systemctl start tor
4+
55
systemctl enable privoxy
6+
systemctl start privoxy
67

7-
dotnet JacRed.dll || exit 1
8+
systemctl enable jacred
9+
systemctl start jacred
810

911
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)