Skip to content

Commit 2d68a5f

Browse files
fix: init .yarnrc.yml in Docker build for setting nodeLinker only
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
1 parent 5a79287 commit 2d68a5f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ RUN \
4949
WORKDIR /app
5050

5151
# Install dependencies
52-
COPY package.json .yarnrc.yml yarn.lock* ./
52+
COPY package.json yarn.lock* ./
53+
RUN echo "nodeLinker: node-modules" > .yarnrc.yml
5354
RUN \
5455
if [ -f yarn.lock ]; then yarn install --immutable; \
5556
else echo "Lockfile not found." && exit 1; \

0 commit comments

Comments
 (0)