FROM microsoft/dotnet:2.0-sdk AS build-env WORKDIR /app COPY . ./ RUN dotnet --info && \ dotnet publish ArchiSteamFarm -c Release -o out /nologo /p:LinkDuringPublish=false && \ cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm.sh" "ArchiSteamFarm/out/ArchiSteamFarm.sh" FROM microsoft/dotnet:2.0-runtime LABEL maintainer="JustArchi " EXPOSE 1242 WORKDIR /app COPY --from=build-env /app/ArchiSteamFarm/out ./ ENTRYPOINT ["./ArchiSteamFarm.sh", "--service"]