Browse Source

Move the copy of tsconfig to after install dependencies in the Dockerfile to reduce the chance of rebuilds

dev
David Ludwig 4 years ago
parent
commit
61692646ed
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      Dockerfile

+ 4
- 1
Dockerfile View File

@ -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


Loading…
Cancel
Save