-
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
bfa8cd8
commit 51e218e
Showing
2 changed files
with
26 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,13 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build | ||
WORKDIR /src | ||
COPY ./CHN.Blazor ./ | ||
RUN dotnet restore CHN.Blazor.csproj | ||
RUN dotnet build CHN.Blazor.csproj -c Release -o /app/build | ||
|
||
FROM build AS publish | ||
RUN dotnet publish CHN.Blazor.csproj -c Release -o /app/publish | ||
|
||
FROM nginx:alpine AS final | ||
WORKDIR /usr/share/nginx/html | ||
COPY --from=publish /app/publish/wwwroot . | ||
COPY nginx.conf /etc/nginx/nginx.conf |
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,13 @@ | ||
events { } | ||
http { | ||
include mime.types; | ||
|
||
server { | ||
listen 80; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
} | ||
} |
51e218e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for chn-tool ready!
✅ Preview
https://chn-tool-mgsxg6ene-jens-krumsiecks-projects.vercel.app
Built with commit 51e218e.
This pull request is being automatically deployed with vercel-action