2024-06-07 03:07:57 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
|
2023-10-10 02:15:38 +00:00
|
|
|
WORKDIR /mpj
|
|
|
|
COPY ./MyPrayerJournal/MyPrayerJournal.fsproj ./
|
|
|
|
RUN dotnet restore
|
|
|
|
|
|
|
|
COPY ./MyPrayerJournal ./
|
|
|
|
RUN dotnet publish -c Release -r linux-x64
|
2024-06-07 03:07:57 +00:00
|
|
|
RUN rm bin/Release/net8.0/linux-x64/publish/appsettings.*.json
|
2023-10-10 02:15:38 +00:00
|
|
|
|
2024-06-07 03:07:57 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine as final
|
2023-10-10 02:15:38 +00:00
|
|
|
WORKDIR /app
|
|
|
|
RUN apk add --no-cache icu-libs
|
|
|
|
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
|
2024-06-07 03:07:57 +00:00
|
|
|
COPY --from=build /mpj/bin/Release/net8.0/linux-x64/publish/ ./
|
2023-10-10 02:15:38 +00:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
CMD [ "dotnet", "/app/MyPrayerJournal.dll" ]
|