From 7a3bc2c22f02dec9fa63d9b51629c875ca3e8ec2 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Fri, 6 Oct 2017 23:56:39 +0200 Subject: [PATCH] Add Dockerfile Based on https://github.com/dotnet/dotnet-docker-samples --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..a4182b189 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM microsoft/dotnet:2.0-sdk AS build-env +WORKDIR /app + +# copy csproj and restore as distinct layers +COPY *.csproj ./ +RUN dotnet restore + +# copy everything else and build +COPY . ./ +RUN dotnet publish -c Release -o out --no-restore /nologo + +# build runtime image +FROM microsoft/dotnet:2.0-runtime +WORKDIR /app +COPY --from=build-env /app/out ./ +ENTRYPOINT ["dotnet", "ArchiSteamFarm.dll"]