diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9c24a59 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,15 @@ +# Generated by `make-dockerignore.py -G`; see https://j.mp/make-dockerignore +* +!.github/workflows/www.yml +!.gitignore +!README.md +!next.config.js +!package.json +!pages/_app.tsx +!pages/_document.tsx +!pages/hydration-error.tsx +!pages/no-pagination-no-error.tsx +!pnpm-lock.yaml +!screenshots/hydration-error.png +!screenshots/no-pagination-no-error.png +!tsconfig.json diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2462715 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:19.3.0 +RUN npm install -g pnpm +WORKDIR /src +COPY package.json pnpm-lock.yaml ./ +RUN pnpm install +COPY . . +ENTRYPOINT [ "npm", "run", "dev" ] diff --git a/README.md b/README.md index df03b50..e10718b 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,30 @@ # react-data-table-hydration-bug Repro of a hydration error in [react-data-table-component]'s pagination `