mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-13 08:27:22 +00:00
9a30277cf8
* 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
14 lines
601 B
Docker
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"]
|