-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
What version of Turborepo are you using?
1.0.28
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Windows
Describe the Bug
When truing to prune specific scope during docker build process operation fails with:
ERROR Could not construct graph: yarn.lock: could not unmarshal lockfile: yaml: line 6: mapping values are not allowed in this context
Dockerfile:
FROM node:alpine AS base
RUN apk update
WORKDIR /app
FROM base AS pruner
WORKDIR /app
RUN yarn global add turbo@1.0.28
COPY . .
RUN turbo prune --scope=web --docker
Potentially related to #471
Expected Behavior
Prunning should work as expected.
To Reproduce
- Setup a boilerplate project using Yarn on Windows =>
npm create-turbo@latest
- Install Docker (if none)
- Create Dockerfile in respective folder =>
./apps/web
- Delete
node_modules
everywhere (or ignore them in.dockerignore
) - Try building it from repo root using
docker build . -f apps/web/Dockerfile -t turbo-web-docker
Metadata
Metadata
Assignees
Labels
No labels