perf: Remove source once compiled
This commit is contained in:
@@ -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
Block a user