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
This commit is contained in:
Łukasz Domeradzki
2018-06-04 00:17:13 +02:00
committed by GitHub
parent 5a024a2d6f
commit 9a30277cf8
14 changed files with 550 additions and 48 deletions

View File

@@ -1,12 +1,12 @@
FROM microsoft/dotnet:2.0-sdk AS build-env
ENV NET_CORE_VERSION netcoreapp2.0
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=generic && \
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm-Service.sh" "ArchiSteamFarm/out/ArchiSteamFarm-Service.sh"
FROM microsoft/dotnet:2.0-runtime-stretch-arm32v7
FROM microsoft/dotnet:2.1-runtime-stretch-slim-arm32v7
LABEL maintainer="JustArchi <JustArchi@JustArchi.net>"
EXPOSE 1242
WORKDIR /app