Failed to run 'RUN yarn install --immutable' in grafana 10.4.13 which hit "Workspace not found" error

After download repo grafana 10.4.13, as to my own dockerfile when running ‘RUN yarn install --immutable --network-timeout 10000000’, it returns “Error: @grafana-plugins/grafana-azure-monitor-datasource@workspace:: Workspace not found (@grafana-plugins/grafana-azure-monitor-datasource@workspace:)”
I did not find a folder name “grafana-azure-monitor-datasource” in the repo files, am I missing something?

env:
yarn: 4.1.0
node: v20.0.0
run following dockerfile in grafana 10.4.13 grafana folder

Dockerfile
node:20.0.0-slim
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn .yarn
COPY packages packages
COPY plugins-bundled plugins-bundled
RUN yarn cache clean
RUN yarn config set npmRegistryServer https://packages.vcfd.broadcom.net/artifactory/api/npm/npm
RUN npm config set registry https://packages.vcfd.broadcom.net/artifactory/api/npm/npm
RUN yarn config set networkConcurrency 1
RUN yarn install --network-timeout 10000000

Anyone could give me some suggestions, thanks in advance~

Welcome @chaoyuwq

Are you following the official build from source approach?

Thank you for watching. As the testing dockerfile works for previous grafana v10.0.1, so need to copy PUBLIC folder from source code v10.4.13 and then run ‘yarn install …’. The issue has been resolved.

1 Like