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