Soham Waghmare commited on
Commit
0dd6ac1
·
1 Parent(s): 5872346
Files changed (1) hide show
  1. Dockerfile +29 -1
Dockerfile CHANGED
@@ -14,6 +14,8 @@ WORKDIR /app
14
 
15
  RUN pip install uv
16
  COPY --chown=user . /app
 
 
17
  WORKDIR /app/backend
18
  RUN uv sync
19
  RUN uv run playwright install chromium
@@ -36,4 +38,30 @@ RUN apt install -y libnss3\
36
  libatspi2.0-0
37
  USER user
38
 
39
- CMD ["uv", "run", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  RUN pip install uv
16
  COPY --chown=user . /app
17
+
18
+ # ---------- Backend ----------
19
  WORKDIR /app/backend
20
  RUN uv sync
21
  RUN uv run playwright install chromium
 
38
  libatspi2.0-0
39
  USER user
40
 
41
+ # ---------- Frontend ----------
42
+ WORKDIR /app/frontend
43
+
44
+ # Install system dependencies
45
+ USER root
46
+ RUN apt-get update && apt-get install -y \
47
+ curl \
48
+ unzip \
49
+ bash \
50
+ build-essential \
51
+ && rm -rf /var/lib/apt/lists/*
52
+ USER user
53
+
54
+ # Install Node.js (LTS)
55
+ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
56
+ && apt-get install -y nodejs
57
+
58
+ # Install Bun
59
+ RUN curl -fsSL https://bun.sh/install | bash
60
+ ENV PATH="/root/.bun/bin:${PATH}"
61
+
62
+ RUN bun install
63
+ RUN bun run build
64
+
65
+ WORKDIR /app
66
+
67
+ CMD ["cd", "backend", "&&", "uv", "run", "app.py", "&&", "cd", "frontend", "bunx", "serve"]