Spaces:
Sleeping
Sleeping
File size: 501 Bytes
2de7ca3 ea1fad2 2de7ca3 0d8d8c2 2de7ca3 19b4a2c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | FROM python:3.11-slim
WORKDIR /app
# rdkit drawing needs a couple of system libs
RUN apt-get update && apt-get install -y --no-install-recommends \
libxrender1 libxext6 libexpat1 libxau6 && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# HuggingFace Spaces expects the app on port 7860
EXPOSE 7860
RUN python download_molformer.py
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
# cache-bust 1783301098
|