diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..0f9814b2 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +node_modules +npm-debug.log +build +.git +*.md +.gitignore +dist \ No newline at end of file diff --git a/.gitignore b/.gitignore index 965e6eb8..99acb235 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,19 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# production +/build + +# misc +.DS_Store +======= # Dependency directories node_modules/ @@ -8,11 +24,14 @@ out/ # Environment files .env -.env.local -.env.development.local -.env.test.local -.env.production.local +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# vite +dist +======= # Editor directories and files .vscode/ .idea/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..788b322d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:18-alpine as builder + +WORKDIR /app + +COPY package*.json . + +RUN npm install + +COPY . . + +RUN npm run build + +CMD ["npm","start"] \ No newline at end of file