Skip to content

Commit 58ded1d

Browse files
author
Alexander Rogalskiy
committed
Updates on files
1 parent e415590 commit 58ded1d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,11 @@ RUN npm cache clean --force
177177
##
178178
## ---- Test stage ----
179179
##
180-
FROM base AS test
180+
FROM node-dependencies AS test
181181

182182
## setup testing stage
183183
RUN echo "**** Testing stage ****"
184184

185-
## copy dependencies
186-
#COPY --from=node-dependencies ${APP_DIR}/prod_node_modules ./node_modules
187-
COPY --from=node-dependencies /usr/local/lib/node_modules ./node_modules
188-
189185
## copy source files
190186
COPY . ./
191187

@@ -207,7 +203,6 @@ ENV PATH=/root/.local:$PATH
207203
## copy dependencies
208204
#COPY --from=node-dependencies ${APP_DIR}/prod_node_modules ./node_modules
209205
COPY --from=node-dependencies /usr/local/lib/node_modules ./node_modules
210-
COPY --from=node-dependencies ${APP_DIR}/node_modules ./node_modules
211206
COPY --from=python-dependencies /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
212207

213208
## copy app sources

0 commit comments

Comments
 (0)