Skip to content

Commit ba260f6

Browse files
Dockerized the app, working completely fine.
1 parent 5a10885 commit ba260f6

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ WORKDIR /
55
COPY package*.json ./
66
RUN npm install
77
COPY . .
8-
CMD ["npm" "run" "dev"]
8+
CMD ["npm", "run", "dev"]
99

1010
# RUN is build time and CMD is run time.

vite.config.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
import { defineConfig } from 'vite';
2-
import react from '@vitejs/plugin-react';
1+
import { defineConfig } from 'vite'
2+
import react from '@vitejs/plugin-react'
33

4-
// https://vitejs.dev/config/
54
export default defineConfig({
65
plugins: [react()],
76
optimizeDeps: {
87
exclude: ['lucide-react'],
98
},
10-
});
9+
server: {
10+
host: '0.0.0.0',
11+
port: 5173,
12+
watch: {
13+
usePolling: false,
14+
ignored: ['**/*', '!**/src/**']
15+
}
16+
}
17+
})

0 commit comments

Comments
 (0)