เพิ่ม git workflow
This commit is contained in:
parent
a93dcbbd20
commit
2328f19be4
21 changed files with 408 additions and 21 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -7,16 +7,17 @@ EXPOSE 443
|
|||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["BMA-EHR-Recurit-Exam-Service.csproj", "."]
|
||||
RUN dotnet restore "./BMA-EHR-Recurit-Exam-Service.csproj"
|
||||
COPY ["nuget.config", "."]
|
||||
COPY ["BMA.EHR.Recurit.Exam.Service.csproj", "."]
|
||||
RUN dotnet restore "./BMA.EHR.Recurit.Exam.Service.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/."
|
||||
RUN dotnet build "BMA-EHR-Recurit-Exam-Service.csproj" -c Release -o /app/build
|
||||
RUN dotnet build "BMA.EHR.Recurit.Exam.Service.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "BMA-EHR-Recurit-Exam-Service.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
RUN dotnet publish "BMA.EHR.Recurit.Exam.Service.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "BMA-EHR-Recurit-Exam-Service.dll"]
|
||||
ENTRYPOINT ["dotnet", "BMA.EHR.Recurit.Exam.Service.dll"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue