From 61692646ed6ecd16aa27c55e848bbcc3b57d7bbf Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Mon, 10 May 2021 18:20:04 +0000 Subject: [PATCH] Move the copy of tsconfig to after install dependencies in the Dockerfile to reduce the chance of rebuilds --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 92a6253..5d8a002 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,9 +49,12 @@ RUN echo "#!/bin/sh" >> /bin/lerna && \ chmod +x /bin/lerna # Copy over Lerna stuff -COPY lerna.json package.json tsconfig*.json ./ +COPY lerna.json package.json ./ RUN yarn install +# Copy TS configs +COPY tsconfig*.json ./ + # Symlink the requested service to /app RUN ln -s /opt/app/services/${SERVICE} /app WORKDIR /app