title: docker build file copying files with square brackets
body: <p>I've been using a docker build file to build my nextjs node application fine for a long while, but today I added nextjs dynamic pages. These pages are named with square brackets e.g. [page].js</p>
  
  <p>If i remove this file my docker file builds fine, so it's definitely to do with the square brackets, but I don't know how to solve this problem.</p>
  
  <p>Here's my Docker file:</p>
  
  <pre><code>FROM node:10.13-alpine
  RUN mkdir -p /home/node/app/node_modules &amp;&amp; chown -R node:node /home/node/app
  WORKDIR /home/node/app
  COPY package*.json ./
  USER node
  RUN npm install
  COPY --chown=node:node . .
  EXPOSE 3000
  RUN npm run build
  CMD ["npm", "start"]
  </code></pre>
  
  <p>and here's the error </p>
  
  <p><code>Error: Could not find a valid build in the '/home/node/app/.next' directory!</code></p>
  
  <p>And as I say, it's started since i've added the square brackets in the filename. Unfortunately these files must be named with square brackets to function correctly</p>