|
FROM ubuntu:22.04 |
|
EXPOSE 1242 |
|
|
|
ENV TZ=Asia/Shanghai |
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ |
|
echo $TZ > /etc/timezone |
|
|
|
RUN apt-get update && \ |
|
apt-get upgrade -y -qq && \ |
|
apt-get install -y -qq \ |
|
tzdata ca-certificates libc6 libgcc-s1 libicu70 libgssapi-krb5-2 \ |
|
libssl3 libstdc++6 zlib1g git wget p7zip-full python3.10 python3-pip \ |
|
fonts-wqy-zenhei fonts-wqy-microhei fonts-arphic-ukai fonts-arphic-uming |
|
|
|
RUN wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb && \ |
|
dpkg -i packages-microsoft-prod.deb && \ |
|
apt-get update && \ |
|
apt-get install -y -qq dotnet-runtime-9.0 dotnet-sdk-9.0 && \ |
|
rm -rf /var/lib/apt/lists/* && \ |
|
apt-get clean |
|
|
|
|
|
|
|
WORKDIR /zmal |
|
|
|
|
|
RUN git clone https://github.com/dmcallejo/ASFBot.git |
|
|
|
|
|
RUN wget -q https://github.com/JustArchiNET/ArchiSteamFarm/releases/latest/download/ASF-generic.zip && \ |
|
wget -q https://github.com/Citrinate/FreePackages/releases/latest/download/FreePackages.zip && \ |
|
wget -q https://github.com/CatPoweredPlugins/ASFAchievementManager/releases/latest/download/ASFAchievementManager.zip && \ |
|
wget -q https://github.com/chr233/ASFEnhance/releases/latest/download/ASFEnhance.zip |
|
|
|
|
|
RUN 7z x ASF-generic.zip -o/zmal/ && \ |
|
7z x FreePackages.zip -o/zmal/plugins/ && \ |
|
7z x ASFAchievementManager.zip -o/zmal/plugins/ASFAchievementManager/ && \ |
|
7z x ASFEnhance.zip -o/zmal/plugins/ && \ |
|
rm -f ASF-generic.zip FreePackages.zip ASFAchievementManager.zip ASFEnhance.zip |
|
|
|
|
|
COPY config.7z /zmal/ |
|
RUN --mount=type=secret,id=zzz,mode=0444,required=true \ |
|
7z x -p"$(cat /run/secrets/zzz)" config.7z -o/zmal/config/ && \ |
|
rm -f config.7z |
|
|
|
|
|
RUN chmod -R 777 /zmal |
|
|
|
|
|
CMD bash ArchiSteamFarm-Service.sh |
|
|