-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01e030f
commit 50e6218
Showing
2 changed files
with
11 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
FROM python:3.6.5 | ||
FROM python:3.7 | ||
MAINTAINER "TaoLin" <[email protected]> | ||
|
||
ARG WORKDIR=/home/project | ||
ARG WORKDIR=/home | ||
ENV PYTHONPATH "${PYTHONPATH}:$WORKDIR" | ||
|
||
# Install required python packages | ||
COPY . $WORKDIR | ||
WORKDIR $WORKDIR | ||
RUN pip install -r $WORKDIR/requirements.txt | ||
|
||
# Install Blas Lapack | ||
# Install fortran, blas, lapack | ||
RUN apt update | ||
RUN apt-get install -y --no-install-recommends --allow-unauthenticated gfortran | ||
RUN apt-get install -y --no-install-recommends --allow-unauthenticated libblas-dev liblapack-dev | ||
RUN apt-get install -y gfortran libblas-dev liblapack-dev | ||
|
||
# Install Primme | ||
RUN git clone https://github.com/primme/primme.git | ||
RUN cd primme && \ | ||
# git checkout release-2.2 &&\ | ||
make python_install &&\ | ||
cd .. | ||
# Install required python packages | ||
COPY . $WORKDIR | ||
RUN pip install --upgrade pip | ||
RUN pip install -r requirements.txt | ||
|
||
# Install TNpy | ||
# Install tnpy | ||
RUN python setup.py install | ||
|
||
ENTRYPOINT /bin/bash/ | ||
#ENTRYPOINT python -m unittest discover -s $WORKDIR/test -p '*_test.py' | ||
ENTRYPOINT /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters