title: nestjs Docker build error: can not find tsconfig.build.json
body: <p>here is my Dockerfile:</p>
  <pre><code>FROM node AS builder
  
  
  WORKDIR /app
  
  COPY package*.json ./
  COPY prisma ./prisma/
  COPY tsconfig.build.json ./
  COPY tsconfig.json ./
  
  RUN npm install
  
  COPY . .
  RUN npm run build
  
  FROM node
  
  COPY --from=builder /app/node_modules ./node_modules
  COPY --from=builder /app/package*.json ./
  COPY --from=builder /app/dist ./dist
  
  EXPOSE 3000
  CMD [ &quot;npm&quot;, &quot;run&quot;, &quot;start:dev&quot; ]
  </code></pre>
  <p>and here is my docker-compose.yml:</p>
  <pre><code>version: &quot;3.7&quot;
  services:
    web:
      image: Dockerfile
      build:
        context: ./
        dockerfile: Dockerfile.development
      volumes:
        - ./:/app:z
      environment:
        NODE_ENV : development
        TZ: &quot;${TZ:-America/Los_Angeles}&quot;
      ports:
        - &quot;3000:3000&quot;
  </code></pre>
  <p>After I run the docker-compose up -d,  I can have the error from the console :</p>
  <p>Error  Could not find TypeScript configuration file &quot;tsconfig.build.json&quot;. Please, ensure that you are running this command in the appropriate directory (inside Nest workspace).</p>
  <p>I have tried to copy and paste tsconfig.build.json to the docker, but it still does not work.</p>
  <p>please help.</p>