Added frozen lockfile support

This commit is contained in:
Wyatt Johnson
2017-03-31 09:34:38 -06:00
parent da4eceafe9
commit e5da8354d6
4 changed files with 4 additions and 26 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ EXPOSE 5000
COPY . /usr/src/app
# Install app dependencies and build static assets.
RUN yarn install && \
RUN yarn install --frozen-lockfile && \
yarn build && \
yarn install --production && \
yarn cache clean
+1 -1
View File
@@ -7,7 +7,7 @@ ONBUILD COPY . /usr/src/app
# 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 && \
ONBUILD RUN NODE_ENV=development yarn install --frozen-lockfile && \
NODE_ENV=production yarn build && \
NODE_ENV=production yarn install --production && \
yarn cache clean
+2 -1
View File
@@ -1,6 +1,6 @@
machine:
node:
version: 7.6
version: 7
services:
- docker
- redis
@@ -20,6 +20,7 @@ dependencies:
# - sudo service mongod restart
# Install node dependencies.
- yarn --version
- yarn
cache_directories:
- ~/.cache/yarn
-23
View File
@@ -1,23 +0,0 @@
# Coral Admin
This app handles moderation for Talk (and maybe more later on)
## Installation
$ yarn install
$ cp config.sample.json config.json
Then change `config.json` to adjust it to your project
## Building for production
$ yarn build
The public folder has everything you need for deployment. You can just copy that folder to your favorite static web server
## Development
$ yarn start
A development server will be running at http://localhost:4132