Browse Source

Copy the SSL certificate (.pfx) file to the /root/.aspnet/https/ in the linux containers

pull/737/head
rafsanulhasan 6 years ago
parent
commit
fa98fdf161
3 changed files with 3 additions and 0 deletions
  1. +1
    -0
      src/Services/Identity/Identity.API/Dockerfile
  2. +1
    -0
      src/Web/WebMVC/Dockerfile
  3. +1
    -0
      src/Web/WebSPA/Dockerfile

+ 1
- 0
src/Services/Identity/Identity.API/Dockerfile View File

@ -17,6 +17,7 @@ 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


+ 1
- 0
src/Web/WebMVC/Dockerfile View File

@ -17,6 +17,7 @@ FROM dotnet-build as build
WORKDIR /src/src/Web/WebMVC/wwwroot
COPY --from=node-build /web/wwwroot .
WORKDIR /src
COPY ./Certificates/eShopOnContainers.pfx /root/.aspnet/https/
COPY . .
WORKDIR /src/src/Web/WebMVC
RUN dotnet restore -nowarn:msb3202,nu1503


+ 1
- 0
src/Web/WebSPA/Dockerfile View File

@ -17,6 +17,7 @@ FROM dotnet-build as publish
WORKDIR /src/src/Web/WebSPA/wwwroot
COPY --from=node-build /web/wwwroot .
WORKDIR /src
COPY ./Certificates/eShopOnContainers.pfx /root/.aspnet/https/
COPY . .
WORKDIR /src/src/Web/WebSPA
RUN dotnet publish -c Release -o /app


Loading…
Cancel
Save