Browse Source

update config.yml

main
khelia 5 years ago
parent
commit
a6f938d42c
  1. 8
      .circleci/config.yml
  2. 9
      Dockerfile

8
.circleci/config.yml

@ -37,7 +37,7 @@ workflows:
jobs:
build:
docker:
- image: cimg/node:dubnium
- image: cimg/node:12.18.4
steps:
- checkout
- restore_cache:
@ -49,7 +49,7 @@ jobs:
- ./node_modules
lint:
docker:
- image: cimg/node:dubnium
- image: cimg/node:12.18.4
steps:
- checkout
- restore_cache:
@ -57,7 +57,7 @@ jobs:
- run : yarn lint && yarn format:check
test:
docker:
- image: cimg/node:dubnium
- image: cimg/node:12.18.4
steps:
- checkout
- restore_cache:
@ -97,7 +97,7 @@ jobs:
docker push $IMAGE_NAME:latest
build_docs_artifact:
docker:
- image: cimg/node:dubnium
- image: cimg/node:12.18.4
steps:
- checkout
- restore_cache:

9
Dockerfile

@ -1,4 +1,5 @@
FROM node:dubnium
COPY . /app
WORKDIR /app
CMD yarn global add node-gyp && yarn install && yarn start
FROM node:12.18.4
COPY ["package.json", "yarn.lock", "./"]
RUN yarn install
COPY . .
CMD ["yarn", "start"]
Loading…
Cancel
Save