diff --git a/Dockerfile b/Dockerfile index 4e2b77520..7cef46451 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Dockerfile.onbuild b/Dockerfile.onbuild index 2476c6d1a..a34887f3a 100644 --- a/Dockerfile.onbuild +++ b/Dockerfile.onbuild @@ -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 \ No newline at end of file diff --git a/circle.yml b/circle.yml index c97f30cee..013ef28b8 100644 --- a/circle.yml +++ b/circle.yml @@ -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 diff --git a/client/coral-admin/README.md b/client/coral-admin/README.md deleted file mode 100644 index 7bc9de36e..000000000 --- a/client/coral-admin/README.md +++ /dev/null @@ -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