setup for prod

This commit is contained in:
Léo 2025-03-11 21:01:24 +01:00
parent b2e1b90747
commit 2f2bd57356
2 changed files with 22 additions and 0 deletions

9
Dockerfile Normal file
View 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
View 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,
},
},
});