Update docker build paths/files
This commit is contained in:
1 parent
f7b479a759
commit
7a64a986c2
1 file changed
+5
-4
+5
-4
@@ -1,7 +1,8 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
|
||||
FROM mcr.microsoft.com/dotnet/sdk:11.0-alpine AS build
|
||||
WORKDIR /pt
|
||||
COPY ./PrayerTracker.sln ./
|
||||
COPY ./PrayerTracker.slnx ./
|
||||
COPY ./Directory.Build.props ./
|
||||
COPY ./Directory.Packages.props ./
|
||||
COPY ./PrayerTracker/PrayerTracker.fsproj ./PrayerTracker/
|
||||
COPY ./PrayerTracker.Data/PrayerTracker.Data.fsproj ./PrayerTracker.Data/
|
||||
COPY ./PrayerTracker.Tests/PrayerTracker.Tests.fsproj ./PrayerTracker.Tests/
|
||||
@@ -15,11 +16,11 @@ RUN dotnet run
|
||||
WORKDIR /pt/PrayerTracker
|
||||
RUN dotnet publish -c Release -r linux-x64
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine as final
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:11.0-alpine AS final
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache icu-libs
|
||||
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
|
||||
COPY --from=build /pt/PrayerTracker/bin/Release/net8.0/linux-x64/publish/ ./
|
||||
COPY --from=build /pt/PrayerTracker/bin/Release/net11.0/linux-x64/publish/ ./
|
||||
|
||||
EXPOSE 80
|
||||
CMD [ "dotnet", "/app/PrayerTracker.dll" ]
|
||||
Reference in new issue
Block a user