Add project
All checks were successful
SanStudent Multi-Project Deployment / deploy-api (push) Successful in 41s
SanStudent Multi-Project Deployment / deploy-frontadmin (push) Successful in 41s
SanStudent Multi-Project Deployment / deploy-frontstudent (push) Successful in 40s

This commit is contained in:
aherman-san
2026-03-07 11:14:26 +01:00
parent bca807d4c1
commit b8f03bf6d3
191 changed files with 122377 additions and 0 deletions

33
FrontStudent/Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
WORKDIR /src
COPY ["FrontStudent/FrontStudent.csproj", "FrontStudent/"]
COPY ["Common/Common.csproj", "Common/"]
RUN dotnet restore -s https://api.nuget.org/v3/index.json "FrontStudent/FrontStudent.csproj"
COPY . .
WORKDIR "/src/FrontStudent"
RUN find . -type d -name "bin" -o -name "obj" | xargs rm -rf
RUN dotnet publish "FrontStudent.csproj" -c Release -o /app/publish
FROM nginx:alpine AS final
WORKDIR /usr/share/nginx/html
RUN rm -rf ./*
COPY --from=build /app/publish/wwwroot .
COPY FrontStudent/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]