wuhp commited on
Commit
f4ad643
·
verified ·
1 Parent(s): 3ca7432

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -11
Dockerfile CHANGED
@@ -12,16 +12,8 @@ RUN npm install
12
  # Copy project files
13
  COPY . .
14
 
15
- # --- IMPORTANT ---
16
- # Vite only exposes vars starting with VITE_
17
- ARG VITE_GEMINI_API_KEY
18
- ARG VITE_OTHER_KEY
19
-
20
- # Make them available during build
21
- ENV VITE_GEMINI_API_KEY=$VITE_GEMINI_API_KEY
22
- ENV VITE_OTHER_KEY=$VITE_OTHER_KEY
23
-
24
- # Build app with env injected
25
  RUN npm run build
26
 
27
  # =========================================
@@ -34,4 +26,4 @@ COPY --from=builder /app/dist .
34
 
35
  EXPOSE 7860
36
 
37
- CMD ["python3", "-m", "http.server", "7860", "--bind", "0.0.0.0"]
 
12
  # Copy project files
13
  COPY . .
14
 
15
+ # Build app (Production mode)
16
+ # Note: No API Keys are injected here to enforce BYOK (Bring Your Own Key)
 
 
 
 
 
 
 
 
17
  RUN npm run build
18
 
19
  # =========================================
 
26
 
27
  EXPOSE 7860
28
 
29
+ CMD ["python3", "-m", "http.server", "7860", "--bind", "0.0.0.0"]