-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gil.reis
committed
Mar 27, 2020
1 parent
0028c40
commit 143339c
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build | ||
WORKDIR /app | ||
|
||
RUN mkdir -p src/UnityNuGet && mkdir -p src/UnityNuGet.Server && mkdir -p src/UnityNuGet.Tests | ||
|
||
COPY src/*.sln src | ||
COPY src/UnityNuGet/*.csproj src/UnityNuGet | ||
COPY src/UnityNuGet.Server/*.csproj src/UnityNuGet.Server | ||
COPY src/UnityNuGet.Tests/*.csproj src/UnityNuGet.Tests | ||
RUN dotnet restore src | ||
|
||
COPY . ./ | ||
RUN dotnet publish src -c Release -o ../out | ||
|
||
# Build runtime image | ||
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 | ||
WORKDIR /app | ||
COPY --from=build /app/src/out . | ||
ENTRYPOINT ["dotnet", "UnityNuGet.Server.dll"] |