guohanghui commited on
Commit
83e9010
·
verified ·
1 Parent(s): 5d59b15

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -12
Dockerfile CHANGED
@@ -2,9 +2,6 @@ FROM python:3.10
2
 
3
  RUN apt-get update && apt-get install -y \
4
  build-essential \
5
- gcc \
6
- g++ \
7
- gfortran \
8
  libopenblas-dev \
9
  && rm -rf /var/lib/apt/lists/*
10
 
@@ -16,22 +13,16 @@ ENV PATH="/home/user/.local/bin:$PATH"
16
 
17
  WORKDIR /app
18
 
19
- RUN pip install --no-cache-dir --user --upgrade pip cython numpy mako cyarray
 
 
20
 
21
  COPY --chown=user ./requirements.txt requirements.txt
22
 
23
  RUN pip install --no-cache-dir --user -r requirements.txt
24
 
25
- RUN pip install --no-cache-dir --user pysph || echo "Will build from source"
26
-
27
  COPY --chown=user . /app
28
 
29
- WORKDIR /app/pysph/source
30
-
31
- RUN pip show pysph > /dev/null 2>&1 || pip install --no-cache-dir --user -e .
32
-
33
- WORKDIR /app
34
-
35
  ENV MCP_TRANSPORT=http
36
  ENV MCP_PORT=7860
37
 
 
2
 
3
  RUN apt-get update && apt-get install -y \
4
  build-essential \
 
 
 
5
  libopenblas-dev \
6
  && rm -rf /var/lib/apt/lists/*
7
 
 
13
 
14
  WORKDIR /app
15
 
16
+ RUN pip install --no-cache-dir --user --upgrade pip
17
+
18
+ RUN pip install --no-cache-dir --user pysph
19
 
20
  COPY --chown=user ./requirements.txt requirements.txt
21
 
22
  RUN pip install --no-cache-dir --user -r requirements.txt
23
 
 
 
24
  COPY --chown=user . /app
25
 
 
 
 
 
 
 
26
  ENV MCP_TRANSPORT=http
27
  ENV MCP_PORT=7860
28