setup for prod
This commit is contained in:
parent
b2e1b90747
commit
2f2bd57356
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM node:22-alpine
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package.json pnpm-lock.yaml ./
|
||||||
|
RUN npm install -g pnpm && pnpm install
|
||||||
|
COPY . .
|
||||||
|
RUN pnpm run build
|
||||||
|
RUN npm install -g serve
|
||||||
|
EXPOSE 5001
|
||||||
|
CMD ["serve", "-s", "dist", "-l", "5001"]
|
13
vite.config.js
Normal file
13
vite.config.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import { defineConfig } from 'vite';
|
||||||
|
import vue from '@vitejs/plugin-vue';
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
plugins: [vue()],
|
||||||
|
server: {
|
||||||
|
port: 5001,
|
||||||
|
host: "0.0.0.0",
|
||||||
|
hmr: {
|
||||||
|
clientPort: 80,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user