Skip to content

Commit 8e6fcbf

Browse files
committed
updated repo
1 parent ae5d454 commit 8e6fcbf

File tree

317 files changed

+44468
-2620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+44468
-2620
lines changed

docker-compose.override.yml

Lines changed: 0 additions & 106 deletions
This file was deleted.

docker-compose.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

run-aspnetcore-microservices.sln

Lines changed: 0 additions & 110 deletions
This file was deleted.
File renamed without changes.

src/ApiGateway/APIGateway/APIGateway.csproj

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/ApiGateway/APIGateway/configuration.production.json

Lines changed: 0 additions & 91 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
2+
3+
FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim AS base
4+
WORKDIR /app
5+
EXPOSE 80
6+
7+
FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build
8+
WORKDIR /src
9+
COPY ["ApiGateways/OcelotApiGw/OcelotApiGw.csproj", "ApiGateways/OcelotApiGw/"]
10+
COPY ["BuildingBlocks/Common.Logging/Common.Logging.csproj", "BuildingBlocks/Common.Logging/"]
11+
RUN dotnet restore "ApiGateways/OcelotApiGw/OcelotApiGw.csproj"
12+
COPY . .
13+
WORKDIR "/src/ApiGateways/OcelotApiGw"
14+
RUN dotnet build "OcelotApiGw.csproj" -c Release -o /app/build
15+
16+
FROM build AS publish
17+
RUN dotnet publish "OcelotApiGw.csproj" -c Release -o /app/publish
18+
19+
FROM base AS final
20+
WORKDIR /app
21+
COPY --from=publish /app/publish .
22+
ENTRYPOINT ["dotnet", "OcelotApiGw.dll"]

0 commit comments

Comments
 (0)