Skip to content

Commit

Permalink
corrected dockerfile for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim committed Jan 25, 2024
1 parent 63ad242 commit b1400d7
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# You could directly edit the source code at `/home/brkraw to make changes. Or you could mount your brkraw code folder to /home/brkraw

# HOW TO USE:
# 1: BUILD IMAGE: run 'docker build - < Dockerfile.dev -t <IMAGE_NAME>'
# CHANGE THIS FILENAME TO Dockerfile
# 1: BUILD IMAGE: run 'docker build . -t <IMAGE_NAME>'
# 2: docker run -it -e DISPLAY=$DISPLAY \
# -u=$(id -u $USER):$(id -g $USER) \
# -v /tmp/.X11-unix:/tmp/.X11-unix:rw \
Expand All @@ -15,23 +16,33 @@ RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*

git
RUN apt-get install -y make gcc libfftw3-dev liblapacke-dev libpng-dev libopenblas-dev
RUN apt-get install tk -y
RUN rm -rf /var/lib/apt/lists/*

#BART
RUN wget https://github.com/mrirecon/bart/archive/refs/tags/v0.9.00.tar.gz \
&& tar zxvpf v0.9.00.tar.gz && rm v0.9.00.tar.gz
WORKDIR /bart-0.9.00
RUN make
WORKDIR /
RUN echo '[Default]\ntoolbox_path = /bart-0.9.00/' > /root/.brkbartrc
ENV TOOLBOX_PATH=/bart-0.9.00
ENV PATH=$TOOLBOX_PATH:$PATH

# INSTALL BRKRAW
WORKDIR /home
RUN mkdir ./brkraw
WORKDIR /home/brkraw

# COPY is not working currently
# COPY . .
COPY . .

# RUN git clone only clones files
# into current dir not into separte dir
RUN git clone https://github.com/timwahoo/brkraw.git .
RUN python -m pip install .
#RUN git clone https://github.com/timwahoo/brkraw.git .
RUN python -m pip install --editable /home/brkraw

# INSTALL BRKRAW-BART
WORKDIR /home
Expand Down

0 comments on commit b1400d7

Please sign in to comment.