Fix Dockerbuild

This commit is contained in:
JustArchi 2017-10-07 00:06:12 +02:00
parent 7a3bc2c22f
commit 24b73ec187

View file

@ -1,15 +1,9 @@
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
RUN dotnet publish ArchiSteamFarm -c Release -o out /nologo
# build runtime image
FROM microsoft/dotnet:2.0-runtime
WORKDIR /app
COPY --from=build-env /app/out ./