Skip to content

Commit

Permalink
Fix missing TypeScript build for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed Mar 31, 2021
1 parent 7929d3a commit 18d685d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ services/datalad/node_modules
.env.example
config.env.example
LICENSE
README.md
README.md
yarn-error.log
12 changes: 2 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@ FROM node:14.16.0 as dependencies

WORKDIR /srv

COPY package.json yarn.lock ./
# Sadly we have to manually copy each of these to get a full node_modules tree
COPY packages/openneuro-app/package.json packages/openneuro-app/package.json
COPY packages/openneuro-cli/package.json packages/openneuro-cli/package.json
COPY packages/openneuro-client/package.json packages/openneuro-client/package.json
COPY packages/openneuro-indexer/package.json packages/openneuro-indexer/package.json
COPY packages/openneuro-server/package.json packages/openneuro-server/package.json

RUN yarn install --frozen-lockfile

COPY . /srv

RUN yarn install --frozen-lockfile && yarn tsc -b

FROM dependencies as tests

RUN yarn test

0 comments on commit 18d685d

Please sign in to comment.