Added Dockerfile and configured vite config

This commit is contained in:
Varad Gupta
2024-08-25 19:53:15 +05:30
parent d78198a4cd
commit 7d0ce63587
2 changed files with 18 additions and 0 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:18
WORKDIR /usr/src/app
COPY package.json ./
RUN npm install
COPY . .
EXPOSE 5173
CMD ["npm", "run", "dev"]

View File

@@ -10,4 +10,9 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'), '@': path.resolve(__dirname, './src'),
}, },
}, },
server: {
host: true,
strictPort:true,
port: 5173
}
}); });