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