2 months ago
builder
RUN yarn ci --only=production && yarn cache clean --force
517ms
yarn run v1.22.22
error Command "ci" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Dockerfile:12
-------------------
10 |
11 | # Install dependencies including dev dependencies for build
12 | >>> RUN yarn ci --only=production && yarn cache clean --force
13 |
14 | # Copy source code
-------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c yarn ci --only=production && yarn cache clean --force" did not complete successfully: exit code: 1
git repo Tyronemitchell123/Aurelia-private-concierge-complete
2 Replies
2 months ago
IIRC yarn ci doesn’t exist. Try using yarn install --frozen-lockfile
2 months ago
yarn doesnt have a ci command the equivalent is install, your command flags use --only=production. You are in a "builder" stage, so you almost certainly need dev dependencies (like the Aurelia CLI, Webpack, or TypeScript) to compile the code.
Hope this helps.
Fixed line:RUN yarn install --frozen-lockfile && yarn cache clean --force