diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..b512c09d --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 00ce0d0e..310833e9 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -18,4 +18,4 @@ jobs: run: npm ci - name: Run ESLint - run: npm run lint + run: npm run lint:check diff --git a/.husky/post-merge b/.husky/post-merge old mode 100644 new mode 100755 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..57522f96 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:20 + +WORKDIR /app + +COPY package*.json . + +RUN npm ci + +COPY . . + +EXPOSE 5173 + +ENTRYPOINT npm run build && npm run preview \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 4dc8f87a..78abfd5f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,6 +12,8 @@ export default defineConfig(({ mode }) => { return { preview: { port: 5173, + strictPort: true, + host: true, }, plugins: [react()], envPrefix: 'NB_',