Skip to content

Commit dccc279

Browse files
committed
fix dockerfile to work correctly
1 parent 362e95c commit dccc279

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ RUN R --vanilla -e 'install.packages(c("data.table", "plyr", "tidyverse"), repos
5454
################################################################################
5555
##################### Install Regtools #########################################
5656

57-
# clone git repository
58-
RUN cd / && git clone https://github.com/griffithlab/regtools.git
57+
# add repo source
58+
ADD . /regtools
5959

6060
# make a build directory for regtools
61-
WORKDIR /regtools/
62-
61+
WORKDIR /regtools
6362

6463
# compile from source
6564
RUN mkdir build && cd build && cmake .. && make
@@ -68,8 +67,7 @@ RUN mkdir build && cd build && cmake .. && make
6867
###################### set environment path #################################
6968

7069
# make a build directory for regtools
71-
WORKDIR /regtools/scripts/
70+
WORKDIR /scripts/
7271

7372
# add regtools executable to path
7473
ENV PATH="/regtools/build:/usr/local/bin/R-${r_version}:${PATH}"
75-

0 commit comments

Comments
 (0)