Overflow/Dockerfile

26 lines
595 B
Docker
Raw Normal View History

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS base
2024-06-09 18:55:11 +01:00
RUN dotnet workload install wasm-tools
2024-06-09 19:01:45 +01:00
RUN apt install python3
2024-06-09 18:55:11 +01:00
COPY *.sln .
COPY Overflow/*.csproj ./Overflow/
COPY Overflow.Web/*.csproj ./Overflow.Web/
2024-06-09 18:51:05 +01:00
COPY Overflow.Web.Client/*.csproj ./Overflow.Web.Clientl/
RUN dotnet restore ./Overflow.Web/Overflow.Web.csproj
COPY . ./
FROM base as publish
RUN dotnet publish Overflow.Web/Overflow.Web.csproj -c Release -o /app
FROM mcr.microsoft.com/dotnet/aspnet:8.0
EXPOSE 80
WORKDIR /app
COPY --from=publish /app ./
ENV DOTNET_EnableDiagnostics=0
USER app
ENTRYPOINT ["dotnet", "Overflow.Web.dll"]