Skip to content

Commit 48f24c8

Browse files
committed
✨ Added Dockerfile
1 parent b8db9ff commit 48f24c8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Deriving the latest .NET Core 3.1 base image
2+
FROM mcr.microsoft.com/dotnet/runtime:3.1
3+
4+
# Opt-out from the .NET diagnostic pipeline
5+
ENV DOTNET_EnableDiagnostics=0
6+
7+
# Label the authors
8+
LABEL Maintainer="AlexanderNorup & Rikj000"
9+
10+
# Prepare environment (Create folder, update system, install unzip & clean the system)
11+
RUN mkdir /clean-chat-acc && apt-get update && apt-get -y install unzip && apt-get clean
12+
13+
# Set the app working directory
14+
WORKDIR /clean-chat-acc
15+
16+
# Download the latest CleanChat-ACC and add her into the container
17+
ADD https://drive.alexandernorup.com/CleanChat/latest.zip ./
18+
19+
# Extract CleanChat-ACC and remove the remaining .zip
20+
RUN unzip latest.zip && rm latest.zip
21+
22+
# Copy the local config.json file from the working directory into the container
23+
COPY ./config.json ./
24+
25+
# Run the CleanChat AutoClearChannel Bot!
26+
ENTRYPOINT ["dotnet", "CleanChat-AutoClearChannel.dll"]

0 commit comments

Comments
 (0)