guohanghui commited on
Commit
9d02f31
·
verified ·
1 Parent(s): dfe9afc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile CHANGED
@@ -1,5 +1,11 @@
1
  FROM python:3.10
2
 
 
 
 
 
 
 
3
  RUN useradd -m -u 1000 user && python -m pip install --upgrade pip
4
  USER user
5
  ENV PATH="/home/user/.local/bin:$PATH"
@@ -10,6 +16,13 @@ COPY --chown=user ./requirements.txt requirements.txt
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
  COPY --chown=user . /app
 
 
 
 
 
 
 
13
  ENV MCP_TRANSPORT=http
14
  ENV MCP_PORT=7860
15
 
 
1
  FROM python:3.10
2
 
3
+ # Install build dependencies for Cython extensions
4
+ RUN apt-get update && apt-get install -y \
5
+ build-essential \
6
+ g++ \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  RUN useradd -m -u 1000 user && python -m pip install --upgrade pip
10
  USER user
11
  ENV PATH="/home/user/.local/bin:$PATH"
 
16
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
17
 
18
  COPY --chown=user . /app
19
+
20
+ # Install autodE from source (includes Cython compilation)
21
+ WORKDIR /app/autodE/source
22
+ RUN pip install --no-cache-dir -e .
23
+
24
+ WORKDIR /app
25
+
26
  ENV MCP_TRANSPORT=http
27
  ENV MCP_PORT=7860
28