forked from NoteCAD/NeoGeoSolver.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
f3a0c6e
commit d34e7ff
Showing
2 changed files
with
35 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,24 @@ | ||
# https://hub.docker.com/_/microsoft-dotnet | ||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build | ||
WORKDIR /source | ||
EXPOSE 80 | ||
|
||
# copy csproj and restore as distinct layers | ||
COPY *.sln . | ||
COPY NeoGeoSolver.NET/NeoGeoSolver.NET.csproj ./NeoGeoSolver.NET/NeoGeoSolver.NET.csproj | ||
COPY NeoGeoSolver.NET.Tests/NeoGeoSolver.NET.Tests.csproj ./NeoGeoSolver.NET.Tests/NeoGeoSolver.NET.Tests.csproj | ||
COPY NeoGeoSolver.NET.UI.Web/NeoGeoSolver.NET.UI.Web.csproj ./NeoGeoSolver.NET.UI.Web/NeoGeoSolver.NET.UI.Web.csproj | ||
RUN dotnet restore | ||
|
||
# copy everything else and build app | ||
COPY . . | ||
WORKDIR /source/NeoGeoSolver.NET.UI.Web | ||
RUN pwd | ||
RUN ls | ||
RUN dotnet publish -c release -o /app | ||
|
||
# final stage/image | ||
FROM mcr.microsoft.com/dotnet/aspnet:7.0 | ||
WORKDIR /app | ||
COPY --from=build /app ./ | ||
ENTRYPOINT ["dotnet", "NeoGeoSolver.NET.UI.Web.dll"] |
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