Initial commit
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["SharepointToolbox.Web.csproj", "."]
|
||||
RUN dotnet restore
|
||||
COPY . .
|
||||
RUN dotnet publish -c Release -o /app/publish --no-restore
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
# Volume for persistent data (profiles, settings, templates, logs, exports)
|
||||
VOLUME ["/data"]
|
||||
|
||||
ENV ASPNETCORE_URLS=http://+:8080
|
||||
ENV DataFolder=/data
|
||||
|
||||
ENTRYPOINT ["dotnet", "SharepointToolbox.Web.dll"]
|
||||
Reference in New Issue
Block a user