[PR #768] fix: Version nodejs and yarn upgrade #16119

Open
opened 2026-06-21 01:48:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/docker/awesome-compose/pull/768
Author: @Kulichanin
Created: 6/18/2026
Status: 🔄 Open

Base: masterHead: fix/vuejs


📝 Commits (3)

  • c95239c fix: Version nodejs and yarn upgrade
  • 6795b00 Merge branch 'master' into fix/vuejs
  • 1bd3251 Update Dockerfile

📊 Changes

1 file changed (+28 additions, -29 deletions)

View changed files

📝 vuejs/vuejs/Dockerfile (+28 -29)

📄 Description

Building vuejs/vuejs/Dockerfile fails with the following error:

21.66 error @inquirer/external-editor@1.0.3: The engine "node" is incompatible with this module. Expected version ">=18". Got "14.4.0"
21.67 info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
21.67 error Found incompatible module.
------
ERROR: failed to build: failed to solve: process "/bin/sh -c yarn global add @vue/cli" did not complete successfully: exit code: 1

After making the following changes to the Dockerfile, the build is successful:

# syntax=docker/dockerfile:1.4
# Fix nodejs version
FROM --platform=$BUILDPLATFORM node:18.20-alpine AS development

RUN mkdir /project
WORKDIR /project

COPY . .

RUN yarn global add @vue/cli
COPY .npmrc .
COPY .yarnrc.yml .
# Fix yarn version when building
RUN yarn upgrade && yarn install --immutable
ENV HOST=0.0.0.0
CMD ["yarn", "run", "serve"]

FROM development as dev-envs
RUN <<EOF
apk update
apk add git
EOF

RUN <<EOF
addgroup -S docker
adduser -S --shell /bin/bash --ingroup docker vscode
EOF
# install Docker tools (cli, buildx, compose)
COPY --from=gloursdocker/docker / /
CMD ["yarn", "run", "serve"]

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/docker/awesome-compose/pull/768 **Author:** [@Kulichanin](https://github.com/Kulichanin) **Created:** 6/18/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `fix/vuejs` --- ### 📝 Commits (3) - [`c95239c`](https://github.com/docker/awesome-compose/commit/c95239c5a2d6d823969dc2d74b89f2b1bd57460c) fix: Version nodejs and yarn upgrade - [`6795b00`](https://github.com/docker/awesome-compose/commit/6795b0042ddbf39670a6e0b00bc5bc286e15522f) Merge branch 'master' into fix/vuejs - [`1bd3251`](https://github.com/docker/awesome-compose/commit/1bd32513d320818e9001c149ebc51cf968c3c63a) Update Dockerfile ### 📊 Changes **1 file changed** (+28 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `vuejs/vuejs/Dockerfile` (+28 -29) </details> ### 📄 Description Building vuejs/vuejs/Dockerfile fails with the following error: ```bash 21.66 error @inquirer/external-editor@1.0.3: The engine "node" is incompatible with this module. Expected version ">=18". Got "14.4.0" 21.67 info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command. 21.67 error Found incompatible module. ------ ERROR: failed to build: failed to solve: process "/bin/sh -c yarn global add @vue/cli" did not complete successfully: exit code: 1 ``` After making the following changes to the Dockerfile, the build is successful: ```Dockerfile # syntax=docker/dockerfile:1.4 # Fix nodejs version FROM --platform=$BUILDPLATFORM node:18.20-alpine AS development RUN mkdir /project WORKDIR /project COPY . . RUN yarn global add @vue/cli COPY .npmrc . COPY .yarnrc.yml . # Fix yarn version when building RUN yarn upgrade && yarn install --immutable ENV HOST=0.0.0.0 CMD ["yarn", "run", "serve"] FROM development as dev-envs RUN <<EOF apk update apk add git EOF RUN <<EOF addgroup -S docker adduser -S --shell /bin/bash --ingroup docker vscode EOF # install Docker tools (cli, buildx, compose) COPY --from=gloursdocker/docker / / CMD ["yarn", "run", "serve"] ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-21 01:48:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-compose#16119