Delete Dockerfile
This commit is contained in:
parent
393a4c90d4
commit
f7159d52e7
@ -1,32 +0,0 @@
|
||||
ARG NODE_IMAGE=node:8.11
|
||||
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
FROM microsoft/dotnet:2.1-sdk as dotnet-build
|
||||
WORKDIR /src
|
||||
|
||||
FROM ${NODE_IMAGE} as node-build
|
||||
WORKDIR /web
|
||||
COPY src/Services/Identity/Identity.API .
|
||||
RUN npm install -g bower@1.8.4
|
||||
RUN bower install --allow-root
|
||||
|
||||
FROM dotnet-build as build
|
||||
WORKDIR /src/src/Services/Identity/Identity.API/wwwroot
|
||||
COPY --from=node-build /web/wwwroot .
|
||||
WORKDIR /src
|
||||
COPY ./Certificates/eShopOnContainers.pfx /root/.aspnet/https/
|
||||
COPY . .
|
||||
WORKDIR /src/src/Services/Identity/Identity.API
|
||||
RUN dotnet restore -nowarn:msb3202,nu1503
|
||||
RUN dotnet build --no-restore -c Release -o /app
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish --no-restore -c Release -o /app
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app .
|
||||
ENTRYPOINT ["dotnet", "Identity.API.dll"]
|
Loading…
x
Reference in New Issue
Block a user