Added new dockerfile for plugin development

This commit is contained in:
Wyatt Johnson
2017-03-29 13:37:36 -06:00
parent f80f253b98
commit 0dc105405c
5 changed files with 44 additions and 16 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM coralproject/talk:latest
# Bundle app source
ONBUILD COPY . /usr/src/app
# At this stage, we need to install the development dependancies again because
# we need to have webpack available. We then build the new dependancies and
# clear out the development dependancies again. After this we of course need to
# clear out the yarn cache, this saves quite a lot of size.
ONBUILD RUN NODE_ENV=development yarn install && \
NODE_ENV=production yarn build && \
NODE_ENV=production yarn install --production && \
yarn cache clean