perf: Remove source once compiled

This commit is contained in:
Tom Moor 2020-09-05 12:57:27 -07:00
parent f0712e22d8
commit f2abf38fe4
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,10 @@ RUN yarn --pure-lockfile
COPY . .
RUN yarn build && \
yarn --production --ignore-scripts --prefer-offline
yarn --production --ignore-scripts --prefer-offline && \
rm -rf server && \
rm -rf shared && \
rm -rf app
ENV NODE_ENV production
CMD yarn start