ARG IMAGESUFFIX FROM --platform=$BUILDPLATFORM node:lts${IMAGESUFFIX} AS build-node WORKDIR /app/ASF-ui COPY ASF-ui . COPY .git/modules/ASF-ui /app/.git/modules/ASF-ui RUN < "resources/ArchiSteamFarm.snk" else echo "WARN: No ASF_PRIVATE_SNK provided!" fi dotnet publish ArchiSteamFarm -c "$CONFIGURATION" -o "out" "-p:ASFVariant=${asf_variant}" -p:ContinuousIntegrationBuild=true -p:PublishSingleFile=true -p:PublishTrimmed=true -r "$asf_variant" --nologo --self-contained if [ -f "/run/secrets/STEAM_TOKEN_DUMPER_TOKEN" ]; then STEAM_TOKEN_DUMPER_TOKEN="$(cat "/run/secrets/STEAM_TOKEN_DUMPER_TOKEN")" if [ -n "STEAM_TOKEN_DUMPER_TOKEN" ] && [ -f "ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SharedInfo.cs" ]; then sed -i "s/STEAM_TOKEN_DUMPER_TOKEN/${STEAM_TOKEN_DUMPER_TOKEN}/g" "ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/SharedInfo.cs" else echo "WARN: STEAM_TOKEN_DUMPER_TOKEN not applied!" fi else echo "WARN: No STEAM_TOKEN_DUMPER_TOKEN provided!" fi for plugin in $PLUGINS_BUNDLED; do dotnet publish "$plugin" -c "$CONFIGURATION" -o "out/plugins/$plugin" "-p:ASFVariant=${asf_variant}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false -r "$asf_variant" --nologo done EOF FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/runtime-deps:8.0${IMAGESUFFIX} AS runtime ENV ASF_PATH=/app ENV ASF_USER=asf ENV ASPNETCORE_URLS= ENV DOTNET_CLI_TELEMETRY_OPTOUT=true ENV DOTNET_NOLOGO=true LABEL maintainer="JustArchi " \ org.opencontainers.image.authors="JustArchi " \ org.opencontainers.image.url="https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Docker" \ org.opencontainers.image.documentation="https://github.com/JustArchiNET/ArchiSteamFarm/wiki" \ org.opencontainers.image.source="https://github.com/JustArchiNET/ArchiSteamFarm" \ org.opencontainers.image.vendor="JustArchiNET" \ org.opencontainers.image.licenses="Apache-2.0" \ org.opencontainers.image.title="ArchiSteamFarm" \ org.opencontainers.image.description="C# application with primary purpose of idling Steam cards from multiple accounts simultaneously" EXPOSE 1242 COPY --from=build-dotnet /app/out /asf RUN <