modify dockerfile for CheckInConsumer
This commit is contained in:
parent
ef5ec7dd85
commit
10196f44a8
1 changed files with 5 additions and 3 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue