a9 commited on
Commit
ae0190f
·
verified ·
1 Parent(s): 5f92840

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -25
Dockerfile CHANGED
@@ -1,32 +1,25 @@
1
- FROM ubuntu:22.04
2
 
3
- # Install system dependencies
 
 
4
  RUN apt-get update && \
5
- apt-get install -y \
6
- build-essential \
7
- libssl-dev \
8
- zlib1g-dev \
9
- libboost-math-dev \
10
- libboost-python-dev \
11
- libboost-timer-dev \
12
- libboost-thread-dev \
13
- libboost-system-dev \
14
- libboost-filesystem-dev \
15
- libopenblas-dev \
16
- libomp-dev \
17
- cmake \
18
- pkg-config \
19
- git \
20
- python3-pip \
21
  curl \
22
- libcurl4-openssl-dev \
23
- wget && \
24
- rm -rf /var/lib/apt/lists/*
25
 
26
- RUN pip install fastapi uvicorn openai fastapi requests google-genai uvicorn firebase-admin
 
 
 
 
 
 
 
27
 
28
- # Copy app and startup script
29
- COPY app.py /app.py
30
 
31
- # Start services
32
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.11-slim
2
 
3
+ WORKDIR /app
4
+
5
+ # Install minimal system dependencies
6
  RUN apt-get update && \
7
+ apt-get install -y --no-install-recommends \
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  curl \
9
+ libcurl4 \
10
+ && rm -rf /var/lib/apt/lists/*
 
11
 
12
+ # Install Python packages
13
+ RUN pip install --no-cache-dir \
14
+ fastapi \
15
+ uvicorn \
16
+ openai \
17
+ requests \
18
+ google-genai \
19
+ firebase-admin
20
 
21
+ # Copy app
22
+ COPY app.py .
23
 
24
+ # Run server
25
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]