diff --git a/InterfaceForward.sln b/InterfaceForward.sln index 9523a3e..3e83c54 100644 --- a/InterfaceForward.sln +++ b/InterfaceForward.sln @@ -14,6 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "solution items", "solution common.props = common.props .gitignore = .gitignore global.json = global.json + docker-compose.yml = docker-compose.yml EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InterfaceForward.Repositories", "src\InterfaceForward.Repositories\InterfaceForward.Repositories.csproj", "{AB53F0CC-DE7A-4AE9-B6AA-2A8283B4EB23}" diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4c81b25 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +services: + interfaceforward.api: + image: interfaceforward.api + build: + context: . + dockerfile: src/InterfaceForward.Api/Dockerfile diff --git a/src/InterfaceForward.Api/Dockerfile b/src/InterfaceForward.Api/Dockerfile index f07a18a..dbd84c0 100644 --- a/src/InterfaceForward.Api/Dockerfile +++ b/src/InterfaceForward.Api/Dockerfile @@ -8,6 +8,11 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src COPY ["src/InterfaceForward.Api/InterfaceForward.Api.csproj", "src/InterfaceForward.Api/"] +COPY ["src/InterfaceForward.Application/InterfaceForward.Application.csproj", "src/InterfaceForward.Application/"] +COPY ["src/InterfaceForward.Application.Contracts/InterfaceForward.Application.Contracts.csproj", "src/InterfaceForward.Application.Contracts/"] +COPY ["src/InterfaceForward.Domain.Shared/InterfaceForward.Domain.Shared.csproj", "src/InterfaceForward.Domain.Shared/"] +COPY ["src/InterfaceForward.Repositories/InterfaceForward.Repositories.csproj", "src/InterfaceForward.Repositories/"] +COPY ["src/InterfaceForward.ServiceDefaults/InterfaceForward.ServiceDefaults.csproj", "src/InterfaceForward.ServiceDefaults/"] RUN dotnet restore "src/InterfaceForward.Api/InterfaceForward.Api.csproj" COPY . . WORKDIR "/src/src/InterfaceForward.Api" diff --git a/src/InterfaceForward.Api/InterfaceForward.Api.csproj b/src/InterfaceForward.Api/InterfaceForward.Api.csproj index 3c91eff..31c3e14 100644 --- a/src/InterfaceForward.Api/InterfaceForward.Api.csproj +++ b/src/InterfaceForward.Api/InterfaceForward.Api.csproj @@ -7,12 +7,6 @@ Linux - - - .dockerignore - - - @@ -24,4 +18,10 @@ + + + .dockerignore + + +