mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 16:47:32 +08:00
14 lines
653 B
Docker
14 lines
653 B
Docker
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 --frozen-lockfile && \
|
|
NODE_ENV=production cli plugins reconcile && \
|
|
NODE_ENV=production yarn build && \
|
|
NODE_ENV=production yarn install --production --force && \
|
|
yarn cache clean |