diff --git a/Dockerfile b/Dockerfile index ebd4a97..fee48bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,15 +2,13 @@ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build-server WORKDIR /source -COPY ./.git . -COPY ./version.json . COPY ./Directory.* . COPY ./server/Directory.* ./server/ COPY ./server/GridBattle.Data/GridBattle.Data.csproj ./server/GridBattle.Data/GridBattle.Data.csproj COPY ./server/GridBattle.Api/GridBattle.Api.csproj ./server/GridBattle.Api/GridBattle.Api.csproj RUN dotnet restore ./server/GridBattle.Api/GridBattle.Api.csproj -COPY ./server ./server/ +COPY . . RUN dotnet publish ./server/GridBattle.Api/GridBattle.Api.csproj -c Release -o publish FROM node:20 AS build-ui diff --git a/server/GridBattle.Data.Importer/Dockerfile b/server/GridBattle.Data.Importer/Dockerfile index 1e973d2..b4ce9bb 100644 --- a/server/GridBattle.Data.Importer/Dockerfile +++ b/server/GridBattle.Data.Importer/Dockerfile @@ -10,7 +10,7 @@ COPY ./server/GridBattle.Data/GridBattle.Data.csproj ./server/GridBattle.Data/Gr COPY ./server/GridBattle.Data.Importer/GridBattle.Data.Importer.csproj ./server/GridBattle.Data.Importer/GridBattle.Data.Importer.csproj RUN dotnet restore ./server/GridBattle.Data.Importer/GridBattle.Data.Importer.csproj -COPY ./server ./server/ +COPY . . RUN dotnet publish ./server/GridBattle.Data.Importer/GridBattle.Data.Importer.csproj -c Release -o publish FROM mcr.microsoft.com/dotnet/aspnet:8.0