This commit is contained in:
jackfiled 2023-11-06 14:08:17 +08:00
parent 46a1639888
commit 3d18aba8a2
3 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,14 @@
name: Build Frontend Docker Image
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: https://git.rrricardo.top/actions/checkout@v3
- run: dotnet publish ./Frontend/Frontend.csproj -c Release -o publish
- run: cp ./Frontend/Dockerfile .
- run: docker build . -t git.rrricardo.top/jackfiled/frontend:latest

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<attachedFolders>
<Path>.gitea</Path>
</attachedFolders>
<explicitIncludes />
<explicitExcludes />
</component>

4
Frontend/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /app
COPY ./publish/ .
ENTRYPOINT ["dotnet", "Frontend.dll"]