|
|
|
|
|
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 /ArchiSteamFarm |
|
|
|
|
|
|
|
|
RUN wget -q https://github.com/JustArchiNET/ArchiSteamFarm/releases/latest/download/ASF-linux-x64.zip && \ |
|
|
|
|
|
wget -q https://github.com/Citrinate/FreePackages/releases/latest/download/FreePackages.zip && \ |
|
|
wget -q https://github.com/DevSplash/FreePointsShop/releases/latest/download/FreePointsShop.zip && \ |
|
|
wget -q https://github.com/DevSplash/ASFAutoClaimStickers/releases/latest/download/AutoClaimStickers.zip |
|
|
|
|
|
|
|
|
RUN 7z x ASF-linux-x64.zip -o/ArchiSteamFarm/ && \ |
|
|
|
|
|
7z x FreePackages.zip -o/ArchiSteamFarm/plugins/ && \ |
|
|
7z x FreePointsShop.zip -o/ArchiSteamFarm/plugins/FreePointsShop/ && \ |
|
|
7z x AutoClaimStickers.zip -o/ArchiSteamFarm/plugins/AutoClaimStickers/ && \ |
|
|
rm -f ASF-linux-x64.zip FreePackages.zip FreePointsShop.zip AutoClaimStickers.zip |
|
|
|
|
|
|
|
|
COPY config.7z /ArchiSteamFarm/ |
|
|
RUN --mount=type=secret,id=PASSWORD,mode=0444,required=true \ |
|
|
7z x -p"$(cat /run/secrets/PASSWORD)" config.7z -o/ArchiSteamFarm/config/ && \ |
|
|
rm -f config.7z |
|
|
|
|
|
|
|
|
RUN chmod -R 777 /ArchiSteamFarm |
|
|
|
|
|
|
|
|
CMD bash ArchiSteamFarm-Service.sh |