Spaces:
Sleeping
Sleeping
File size: 1,164 Bytes
382640f d2b5e3c e7d44cf 382640f e7d44cf 382640f b264e28 382640f d2b5e3c e7d44cf d2b5e3c e7d44cf d2b5e3c e7d44cf 382640f bf596f9 e7d44cf bf596f9 382640f | 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
nodejs \
npm \
ffmpeg \
libsm6 \
cmake \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
# Core DS/ML stack (matches Colab baseline)
RUN pip install --no-cache-dir \
fastapi uvicorn pydantic python-multipart \
numpy pandas scipy networkx scikit-learn \
transformers datasets accelerate tokenizers \
sentence-transformers diffusers \
torchao \
matplotlib seaborn plotly pillow \
opencv-python-headless albumentations \
requests beautifulsoup4 httpx \
nltk textblob spacy \
xgboost lightgbm catboost statsmodels \
tqdm einops safetensors joblib h5py \
openai anthropic google-genai \
langchain langchain-community langgraph \
dask distributed \
librosa soundfile pydub \
umap-learn \
bokeh \
fastai \
duckdb
RUN pip install --no-cache-dir \
--index-url https://download.pytorch.org/whl/cpu \
torch torchvision torchaudio
RUN python -m spacy download en_core_web_sm
WORKDIR /app
COPY server.py .
ENV PORT=7860
CMD ["python", "server.py"]
|