Files
SharepointToolbox-Web/Dockerfile
T
2026-06-02 10:56:03 +02:00

23 lines
535 B
Docker

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"]