Closed ThePlenkov closed 3 years ago
By default dot-files are ignored by docker which means we cannot copy .yarnrc.yml into container using copy directive.
That seems odd, I have several dockerfiles where I do just that
@merceyz I wonder to know how it works for you.
Actually I even tried like that: 1) COPY yarnrc.yml . 2) RUN cat yarnrc.ym -> it's there 3) RUN mv yarnrc.yml .yarnrc.yml 4) cat .yarnrc.yml -> file not found
There is even a statement in the official docker file reference about this: https://docs.docker.com/engine/reference/builder/#dockerignore-file
Hi! 👋
This issue looks stale, and doesn't feature the reproducible
label - which implies that you didn't provide a working reproduction using Sherlock. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it or you edit your first post to include a formal reproduction (you can use the playground for that).
Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we're a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolutions). It helps us help you! 😃
If you absolutely cannot reproduce a bug on Sherlock (for example because it's a Windows-only issue), a maintainer will have to manually add the upholded
label. Thanks for helping us triaging our repository! 🌟
Self-service
Describe the bug
Hi! I try to build node container using yarn berry .
So here are several issues:
So what i did I've created yarnrc.yml file and build container with
--build-arg YARN_RC_FILENAME=yarnrc.yml
However when I run a command
RUN yarn set version berry
it still updates.yarnrc.yml
.Here is the log proving this.
Right now the workaround is to rename yarnrc.yml into .yarnrc.yml but is really strange if this framework brings this requirement for all containers. Please invent something.
The best thing is to support by default yarnrc.yml without . to my vision. Thanks!
To reproduce
RUN yarn set version berry
inside your container and then try to read config.Environment
docker
Additional context
No response