Updated docker file

This commit is contained in:
Alex Hyett 2017-07-07 17:51:14 +01:00 committed by GitHub
parent 1f2d4c67d4
commit 25b79a81ae

View file

@ -4,10 +4,10 @@ ARG BUILDCONFIG=RELEASE
# Copy project files to avoid restoring packages if they haven't changed
COPY *.csproj ./build/
RUN dotnet restore ./build/
COPY . ./build/
WORKDIR /build/
RUN dotnet restore
COPY . .
RUN dotnet publish -c $BUILDCONFIG -o out
# build runtime image