Skip to content

Commit bd1daf2

Browse files
author
ericuss
committed
Add layers in docker for npm install
1 parent b7852f2 commit bd1daf2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Web/WebSPA/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ EXPOSE 80
55

66
FROM ${NODE_IMAGE} as node-build
77
WORKDIR /web
8-
COPY Web/WebSPA .
8+
COPY Web/WebSPA/package.json .
9+
COPY Web/WebSPA/package-lock.json .
910
RUN npm install
11+
COPY Web/WebSPA .
1012
RUN npm run build:prod
1113

1214
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build

0 commit comments

Comments
 (0)