Skip to content

Commit

Permalink
chore: update deps (#267)
Browse files Browse the repository at this point in the history
* chore: update deps

* ci: scan licenses only for production packages

* chore: update sdk-standard-components deps & clean Dockerfile
  • Loading branch information
eoln authored Mar 1, 2021
1 parent b3c2b3b commit 3ab14c8
Show file tree
Hide file tree
Showing 4 changed files with 265 additions and 396 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ jobs:
<<: *defaults_license_scanner
- restore_cache:
key: dependency-cache-v3-{{ checksum "src/package-lock.json" }}
- run:
name: Prune non-production packages before running license-scanner
command: cd src && npm prune --production
- run:
name: Run the license-scanner
command: cd /tmp/license-scanner && pathToRepo=$CIRCLE_WORKING_DIRECTORY make run
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ RUN apk add --no-cache git python build-base

EXPOSE 3000

WORKDIR /src/
WORKDIR /src

# This is super-ugly, but it means we don't have to re-run npm install every time any of the source
# files change- only when any dependencies change- which is a superior developer experience when
# relying on docker-compose.
COPY ./src/package.json ./package.json
COPY ./src/package-lock.json ./package-lock.json
COPY ./src/package.json .
COPY ./src/package-lock.json .
RUN npm ci --only=production

FROM node:14.15-alpine

ARG BUILD_DATE
Expand Down
Loading

0 comments on commit 3ab14c8

Please sign in to comment.