Files
chesscubing/Dockerfile

17 lines
641 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY ChessCubing.App/ChessCubing.App.csproj ChessCubing.App/
RUN dotnet restore ChessCubing.App/ChessCubing.App.csproj
COPY ChessCubing.App/ ChessCubing.App/
COPY ethan/ ethan/
COPY brice/ brice/
COPY favicon.png logo.png transparent.png styles.css site.webmanifest ChessCubing_Time_Reglement_Officiel_V1-1.pdf ChessCubing_Twice_Reglement_Officiel_V2-1.pdf ./
RUN dotnet publish ChessCubing.App/ChessCubing.App.csproj -c Release -o /app/publish
FROM nginx:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/publish/wwwroot /usr/share/nginx/html