-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
14 changed files
with
60 additions
and
205 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 |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
.idea | ||
bin | ||
obj | ||
build | ||
*.DotSettings.user |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build | ||
|
||
WORKDIR /workspace | ||
|
||
COPY . . | ||
|
||
RUN dotnet restore | ||
|
||
WORKDIR /workspace/Damo.Io.Blog | ||
|
||
RUN dotnet run | ||
|
||
FROM nginx | ||
|
||
COPY --from=build /workspace/Damo.Io.Blog/build/public /usr/share/nginx/html |
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
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/sdk:8.0 AS build | ||
|
||
WORKDIR /workspace | ||
|
||
COPY . . | ||
|
||
RUN dotnet restore | ||
|
||
WORKDIR /workspace/Damo.Io.Server | ||
|
||
RUN dotnet publish -c Release -o out | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=build /workspace/Damo.Io.Server/out . | ||
|
||
CMD ["dotnet", "Damo.Io.Server.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 |
---|---|---|
@@ -1,17 +1,24 @@ | ||
.PHONY: restore build lint format | ||
.PHONY: restore clean check format damo.io.server.container damo.io.blog.container dev | ||
|
||
restore: | ||
dotnet tool restore | ||
dotnet restore | ||
|
||
build: | ||
dotnet run --project Build | ||
clean: | ||
dotnet clean | ||
|
||
lint: | ||
dotnet run --project Build lint | ||
check: | ||
dotnet fantomas --check . | ||
dotnet test | ||
|
||
format: | ||
dotnet run --project Build format | ||
dotnet fantomas . | ||
|
||
damo.io.server.container: | ||
docker build -t damo.io.server -f Damo.Io.Server/deployment/Dockerfile . | ||
|
||
damo.io.blog.container: | ||
docker build -t damo.io.blog -f Damo.Io.Blog/deployment/Dockerfile . | ||
|
||
dev: | ||
dotnet watch run --project Damo.Io.Server |
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