From a6f938d42c51eab9b3afb2ef047fa22d2472d251 Mon Sep 17 00:00:00 2001 From: khelia <58723166+khelia148@users.noreply.github.com> Date: Sun, 28 Mar 2021 17:00:11 +0200 Subject: [PATCH] update config.yml --- .circleci/config.yml | 8 ++++---- Dockerfile | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b551cdb..8f376a3 100644 --- a/.circleci/config.yml +++ b/.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: diff --git a/Dockerfile b/Dockerfile index 2e12037..ff16aed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM node:dubnium -COPY . /app -WORKDIR /app -CMD yarn global add node-gyp && yarn install && yarn start \ No newline at end of file +FROM node:12.18.4 +COPY ["package.json", "yarn.lock", "./"] +RUN yarn install +COPY . . +CMD ["yarn", "start"] \ No newline at end of file