perf: Remove source once compiled
This commit is contained in:
parent
f0712e22d8
commit
f2abf38fe4
|
@ -13,7 +13,10 @@ RUN yarn --pure-lockfile
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN yarn build && \
|
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
|
ENV NODE_ENV production
|
||||||
CMD yarn start
|
CMD yarn start
|
||||||
|
|
Reference in New Issue