Overflow/Dockerfile
Andy Pack fe75c94cd2
Some checks are pending
ci / build (8.0.x) (push) Waiting to run
ci / build-Docker (push) Blocked by required conditions
fiddling with python in docker image
2024-06-09 19:05:22 +01:00

26 lines
612 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS base
RUN dotnet workload install wasm-tools
RUN apt update && apt install -y python3
COPY *.sln .
COPY Overflow/*.csproj ./Overflow/
COPY Overflow.Web/*.csproj ./Overflow.Web/
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"]