From 3dc7bc1d6d890d9c84d0ce9e9961e847354387b7 Mon Sep 17 00:00:00 2001 From: Sergey Nikitin Date: Sun, 3 Sep 2023 21:40:21 +0200 Subject: [PATCH] fix(docker): Delete mocks in docker --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a9cd2d91..871f11cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,8 @@ COPY ./video-temp $APP_DIR/video-temp COPY ./init.cjs $APP_DIR COPY ./tsconfig.json $APP_DIR -RUN find $APP_DIR/src -type f -name '*.spec.ts' -delete +RUN find $APP_DIR/src -type d -name __mocks__ -prune -exec rm -rf {} \; +RUN find $APP_DIR/src -type f -name '*.spec.ts' -prune -exec rm -rf {} \; RUN npm run build