Skip to content

Commit 7ccee0a

Browse files
authored
Bump maxfw to 1.1.5 (#46)
* Bump maxfw to 1.1.5 Removed flask-restx requirement because maxfw already fixed flask-restx version. * Add ppc NumPy dependencies
1 parent c65ef4d commit 7ccee0a

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Dockerfile.pai

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,21 @@ RUN sudo install -g pwrai -o pwrai -d /workspace
2222
WORKDIR /workspace
2323
RUN mkdir assets
2424

25+
# Dependencies for building NumPy and Pillow (Prebuilt NumPy and Pillow are not available for ppc)
26+
RUN sudo apt-get update && sudo apt-get install -y \
27+
build-essential \
28+
# NumPy
29+
gfortran \
30+
libblas-dev \
31+
liblapack-dev \
32+
# Pillow
33+
libjpeg-dev \
34+
zlib1g-dev \
35+
&& sudo rm -rf /var/lib/apt/lists/*
36+
2537
COPY . .
26-
RUN ["/bin/bash", "-c", "cd /opt/anaconda/bin && source activate base && pip install --upgrade pip && pip install -r /workspace/requirements.txt" ]
38+
# Cython is required for building NumPy
39+
RUN ["/bin/bash", "-c", "cd /opt/anaconda/bin && source activate base && pip install --upgrade pip && pip install Cython --install-option='--no-cython-compile' && pip install -r /workspace/requirements.txt" ]
2740

2841
#The following is required to get flask to work with the version of werkzeug (0.14) available in PowerAI
2942
RUN ["/bin/bash", "-c", "cd /opt/anaconda/bin && source activate base && pip install Flask==1.0.2"]

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
flask-restx==0.3
21
flask-cors==3.0.7
3-
maxfw==1.1.3
2+
maxfw==1.1.5

0 commit comments

Comments
 (0)