AbdoIR commited on
Commit
940f330
·
verified ·
1 Parent(s): c8cf500

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # System dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ build-essential \
6
+ git \
7
+ python3-dev \
8
+ libboost-all-dev \
9
+ cmake \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Install RDKit (official wheels)
13
+ RUN pip install --upgrade pip && pip install rdkit-pypi
14
+
15
+ # Set workdir
16
+ WORKDIR /app
17
+
18
+ # Copy code
19
+ COPY . .
20
+
21
+ # Install Python dependencies
22
+ RUN pip install --no-cache-dir -r requirements.txt
23
+
24
+ # Set environment variables for HuggingFace Spaces
25
+ ENV PORT=7860
26
+ ENV LOG_LEVEL=info
27
+ ENV ALLOWED_ORIGINS="*"
28
+
29
+ # Expose port for Spaces
30
+ EXPOSE 7860
31
+
32
+ # Start FastAPI server (Spaces expects python main.py)
33
+ CMD ["python", "main.py"]