Eliminated multiple dockerfiles within the ApiGw-Base as they were not really used as a different image but the same. Also, updated references at the docker-compose.yml file.
This commit is contained in:
parent
e83f87b62d
commit
5fd412174e
@ -109,25 +109,25 @@ services:
|
||||
image: rabbitmq:3-management-alpine
|
||||
|
||||
mobileshoppingapigw:
|
||||
image: eshop/ocelotapigw-ms:${TAG:-latest}
|
||||
image: eshop/ocelotapigw:${TAG:-latest}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
|
||||
|
||||
mobilemarketingapigw:
|
||||
image: eshop/ocelotapigw-mm:${TAG:-latest}
|
||||
image: eshop/ocelotapigw:${TAG:-latest}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile2
|
||||
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
|
||||
|
||||
webshoppingapigw:
|
||||
image: eshop/ocelotapigw-ws:${TAG:-latest}
|
||||
image: eshop/ocelotapigw:${TAG:-latest}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile3
|
||||
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
|
||||
|
||||
webmarketingapigw:
|
||||
image: eshop/ocelotapigw-wm:${TAG:-latest}
|
||||
image: eshop/ocelotapigw:${TAG:-latest}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile
|
||||
|
@ -1,19 +0,0 @@
|
||||
FROM microsoft/aspnetcore:2.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
|
||||
FROM microsoft/aspnetcore-build:2.0 AS build
|
||||
WORKDIR /src
|
||||
COPY src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj src/ApiGateways/ApiGw-Base/
|
||||
RUN dotnet restore src/ApiGateways/ApiGw-Base/
|
||||
COPY . .
|
||||
WORKDIR /src/src/ApiGateways/ApiGw-Base/
|
||||
RUN dotnet build -c Release -o /app
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish -c Release -o /app
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app .
|
||||
ENTRYPOINT ["dotnet", "OcelotApiGw.dll"]
|
@ -1,19 +0,0 @@
|
||||
FROM microsoft/aspnetcore:2.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
|
||||
FROM microsoft/aspnetcore-build:2.0 AS build
|
||||
WORKDIR /src
|
||||
COPY src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj src/ApiGateways/ApiGw-Base/
|
||||
RUN dotnet restore src/ApiGateways/ApiGw-Base/
|
||||
COPY . .
|
||||
WORKDIR /src/src/ApiGateways/ApiGw-Base/
|
||||
RUN dotnet build -c Release -o /app
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish -c Release -o /app
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app .
|
||||
ENTRYPOINT ["dotnet", "OcelotApiGw.dll"]
|
@ -1,19 +0,0 @@
|
||||
FROM microsoft/aspnetcore:2.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
|
||||
FROM microsoft/aspnetcore-build:2.0 AS build
|
||||
WORKDIR /src
|
||||
COPY src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj src/ApiGateways/ApiGw-Base/
|
||||
RUN dotnet restore src/ApiGateways/ApiGw-Base/
|
||||
COPY . .
|
||||
WORKDIR /src/src/ApiGateways/ApiGw-Base/
|
||||
RUN dotnet build -c Release -o /app
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish -c Release -o /app
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app .
|
||||
ENTRYPOINT ["dotnet", "OcelotApiGw.dll"]
|
Loading…
x
Reference in New Issue
Block a user