-
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
9fc1472
commit 2a96afa
Showing
3 changed files
with
55 additions
and
7 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
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,20 @@ | ||
# Use the official .NET SDK image to build the app | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0 | ||
WORKDIR /app | ||
|
||
# Copy csproj and restore any dependencies (via NuGet) | ||
COPY *.csproj ./ | ||
RUN dotnet restore | ||
|
||
# Copy the entire project and build the app | ||
COPY . ./ | ||
RUN dotnet publish -c Release -o out | ||
|
||
# Use the official .NET runtime image to run the app | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 | ||
WORKDIR /app | ||
COPY --from=build /app/out . | ||
|
||
# Expose port 80 and define the entry point | ||
EXPOSE 80 | ||
ENTRYPOINT ["dotnet", "YourApp.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.5.002.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "apekade", "apekade.csproj", "{1394DB12-ACB1-4FAB-BA79-1F55F3E98EA9}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{1394DB12-ACB1-4FAB-BA79-1F55F3E98EA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{1394DB12-ACB1-4FAB-BA79-1F55F3E98EA9}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{1394DB12-ACB1-4FAB-BA79-1F55F3E98EA9}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{1394DB12-ACB1-4FAB-BA79-1F55F3E98EA9}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {193274AC-9C67-4DB0-AA22-B6619000A3FD} | ||
EndGlobalSection | ||
EndGlobal |