File size: 716 Bytes
26cf2e1 076b891 26cf2e1 25df4ae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | FROM ubuntu:22.04
# Install system dependencies
RUN apt-get update && \
apt-get install -y \
build-essential \
libssl-dev \
zlib1g-dev \
libboost-math-dev \
libboost-python-dev \
libboost-timer-dev \
libboost-thread-dev \
libboost-system-dev \
libboost-filesystem-dev \
libopenblas-dev \
libomp-dev \
cmake \
pkg-config \
git \
python3-pip \
curl \
libcurl4-openssl-dev \
wget && \
rm -rf /var/lib/apt/lists/*
RUN pip install fastapi uvicorn openai fastapi requests google-genai uvicorn cryptography
# Copy app and startup script
COPY app.py /app.py
# Start services
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |