first commit

This commit is contained in:
Suphonchai Phoonsawat 2023-03-13 12:29:56 +07:00
commit f797ff3e50
228 changed files with 25555 additions and 0 deletions

22
Dockerfile Normal file
View file

@ -0,0 +1,22 @@
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY ["BMA.EHR.Recruit.Service/BMA.EHR.Recruit.Service.csproj", "BMA.EHR.Recruit.Service/"]
RUN dotnet restore "BMA.EHR.Recruit.Service/BMA.EHR.Recruit.Service.csproj"
COPY . .
WORKDIR "/src/BMA.EHR.Recruit.Service"
RUN dotnet build "BMA.EHR.Recruit.Service.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "BMA.EHR.Recruit.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.Recruit.Service.dll"]