ArchiSteamFarm/Dockerfile.x64
Łukasz Domeradzki 9a30277cf8
Runtime upgrade to .NET Core 2.1 (#804)
* Initial bump to .NET Core 2.1

* Add workaround for https://github.com/mono/linker/issues/286

* Deprecate BackgroundGCPeriod

* Websockets updates

* Misc

* Check if travis works with 2.1

* Not yet

* Fix travis for now

* Test

* Whatever, travis is broken right now

* Schema update

* Update travis

* Test travis

* Check OSX

* Correct CI versions

* Misc

* Misc
2018-06-04 00:17:13 +02:00

14 lines
601 B
Docker

FROM microsoft/dotnet:2.1-sdk AS build-env
ENV NET_CORE_VERSION netcoreapp2.1
WORKDIR /app
COPY . ./
RUN dotnet --info && \
dotnet publish ArchiSteamFarm -c Release -f "$NET_CORE_VERSION" -o out /nologo /p:ASFVariant=docker && \
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm.sh" "ArchiSteamFarm/out/ArchiSteamFarm.sh"
FROM microsoft/dotnet:2.1-runtime-stretch-slim
LABEL maintainer="JustArchi <JustArchi@JustArchi.net>"
EXPOSE 1242
WORKDIR /app
COPY --from=build-env /app/ArchiSteamFarm/out ./
ENTRYPOINT ["./ArchiSteamFarm.sh", "--no-restart", "--process-required", "--system-required"]