modify dockerfile for CheckInConsumer

This commit is contained in:
Suchin Sapphasitthatha 2024-12-15 10:39:09 +07:00
parent ef5ec7dd85
commit 10196f44a8

View file

@ -40,8 +40,10 @@ COPY . ./
RUN dotnet restore
# คัดลอกไฟล์ทั้งหมดและ build
COPY . ./
RUN dotnet build -c Release -o /app/build
# COPY . ./
# RUN dotnet build -c Release -o /app/build
WORKDIR "/src/BMA.EHR.CheckInConsumer"
RUN dotnet build "BMA.EHR.CheckInConsumer.csproj" -c Release -o /app/build
# ใช้ stage ใหม่สำหรับการ runtime
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS runtime
@ -53,4 +55,4 @@ WORKDIR /app
COPY --from=build /app/build .
# ระบุ entry point ของแอปพลิเคชัน
ENTRYPOINT ["dotnet", "BMA.EHR.CheckInConsumer.dll"]
ENTRYPOINT ["dotnet", "BMA.EHR.CheckInConsumer.dll"]