-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 838 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM mcr.microsoft.com/dotnet/sdk:10.0-preview AS build
WORKDIR /src
COPY GraamFlows.sln .
COPY src/GraamFlows.Api/GraamFlows.Api.csproj src/GraamFlows.Api/
COPY src/GraamFlows.Cli/GraamFlows.Cli.csproj src/GraamFlows.Cli/
COPY src/GraamFlows.Core/GraamFlows.Core.csproj src/GraamFlows.Core/
COPY src/GraamFlows.Domain/GraamFlows.Domain.csproj src/GraamFlows.Domain/
COPY src/GraamFlows.Objects/GraamFlows.Objects.csproj src/GraamFlows.Objects/
COPY src/GraamFlows.Util/GraamFlows.Util.csproj src/GraamFlows.Util/
COPY tests/GraamFlows.Tests/GraamFlows.Tests.csproj tests/GraamFlows.Tests/
RUN dotnet restore
COPY . .
RUN dotnet publish src/GraamFlows.Api -c Release -o /app
FROM mcr.microsoft.com/dotnet/aspnet:10.0-preview
WORKDIR /app
COPY --from=build /app .
ENV PORT=5200
EXPOSE 5200
ENTRYPOINT ["dotnet", "GraamFlows.Api.dll"]