Skip to content

switch to yarn for faster install time #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ install_deploysuite: &install_deploysuite
cp ./../buildscript/buildenv.sh .
cp ./../buildscript/awsconfiguration.sh .
restore_cache_settings_for_build: &restore_cache_settings_for_build
key: docker-node-modules-{{ checksum "package-lock.json" }}
key: docker-node-modules-{{ checksum "yarn.lock" }}

save_cache_settings: &save_cache_settings
key: docker-node-modules-{{ checksum "package-lock.json" }}
key: docker-node-modules-{{ checksum "yarn.lock" }}
paths:
- node_modules

Expand Down Expand Up @@ -114,7 +114,8 @@ workflows:
context: org-global
filters:
branches:
only: master
only:
- master

testingflow:
when: << pipeline.parameters.run_automatedtesting >>
Expand Down
12 changes: 5 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the base image with Node.js
FROM node:latest
FROM node:14.21.3

# Copy the current directory into the Docker image
COPY . /resources-api
Expand All @@ -8,10 +8,8 @@ COPY . /resources-api
WORKDIR /resources-api

# Install the dependencies from package.json
RUN npm install
RUN npm run lint
RUN npm run lint:fix
#RUN npm run build
#RUN npm run test
RUN yarn install
RUN yarn lint
RUN yarn lint:fix

CMD npm start
CMD node app.js
Loading