Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tanlin2013 committed Apr 4, 2021
1 parent 01e030f commit 50e6218
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
28 changes: 10 additions & 18 deletions Dockerfile
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
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build:
docker build --no-cache --force-rm -t tnpy .

run:
docker run --rm -it --entrypoint=/bin/bash -v ${PWD}:/home/project tnpy -i
docker run --rm -i -t tnpy

test:
python -m unittest discover -s test -p 'test_*.py'
Expand Down

0 comments on commit 50e6218

Please sign in to comment.