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