title: pnpm workspace:* dependencies
body: <p>I have serious trouble installing an partial pnpm monorepo inside a Docker Conatiner.
  The problem is that <code>docker build</code> fails at some <code>devDependencies</code>which should not even be installed.</p>
  <pre class="lang-json prettyprint-override"><code>  &quot;devDependencies&quot;: {
      &quot;@types/node&quot;: &quot;17.0.12&quot;,
      &quot;@types/ssh2-sftp-client&quot;: &quot;7.0.0&quot;,
      &quot;dotenv&quot;: &quot;14.3.2&quot;,
      &quot;eslint&quot;: &quot;8.7.0&quot;,
      &quot;ts-node&quot;: &quot;10.4.0&quot;,
      &quot;typescript&quot;: &quot;4.5.5&quot;,
      &quot;@tts-tmc/eslint-config-typescript&quot;: &quot;workspace:*&quot;,
      &quot;@tts-tmc/ts-config&quot;: &quot;workspace:*&quot;
    }
  </code></pre>
  <p>in my <code>Dockerfile</code> I use fetch to get all dependencies</p>
  <pre><code>FROM node:14-alpine
  ARG GITHUB_NPM_REGISTRY_TOKEN
  
  RUN npm i -g pnpm
  RUN mkdir -p /usr/app
  # pnpm fetch does require only lockfile
  COPY package.json bin/pnpm-lock.yaml /usr/app/
  COPY bin/.npmrc /usr/app/.npmrc
  WORKDIR /usr/app
  RUN pnpm install -r --offline --prod
  </code></pre>
  <p>but even tho ony <code>--prod</code> dependencies should be installed, docker can't build correctly due to the following error</p>
  <p><code>ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE  In : No matching version found for @tts-tmc/eslint-config-typescript@* inside the workspace</code></p>
  <p>So is there a standard way how to solve this? or do I have to modify the package.json and if so, how would you get the correct versions? I thought tha the `lockfile? should be sufficient to install all dependencies.</p>
  <p>Regards
  Mathias</p>