umar-100 commited on
Commit
3f05330
·
1 Parent(s): 75d5dd0
Files changed (1) hide show
  1. frontend/vite.config.js +11 -21
frontend/vite.config.js CHANGED
@@ -1,21 +1,11 @@
1
- FROM node:18 AS build-step
2
- WORKDIR /app/frontend
3
- COPY frontend/package*.json ./
4
-
5
- RUN npm install --legacy-peer-deps
6
-
7
- COPY frontend/ ./
8
- RUN npm run build
9
-
10
- FROM python:3.11-slim
11
- WORKDIR /app
12
- COPY requirements.txt .
13
- RUN pip install --no-cache-dir -r requirements.txt
14
- COPY . .
15
- COPY --from=build-step /app/frontend/dist /app/frontend/dist
16
-
17
- ENV PYTHONPATH=/app
18
- ENV PYTHONUNBUFFERED=1
19
-
20
- EXPOSE 7860
21
- CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ import { defineConfig } from 'vite'
2
+ import react from '@vitejs/plugin-react'
3
+ import tailwindcss from '@tailwindcss/vite'
4
+
5
+ // https://vitejs.dev
6
+ export default defineConfig({
7
+ plugins: [
8
+ react(),
9
+ tailwindcss(),
10
+ ],
11
+ })