-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
66 lines (48 loc) · 1.4 KB
/
Dockerfile
File metadata and controls
66 lines (48 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Use an official Python runtime as the base image
FROM python:2.7-slim
# Set the maintainer label
LABEL maintainer="shea.andrews@ucsf.edu"
# Set environment variables
ENV LDSC_DIR /ldsc
# Update and upgrade
RUN apt-get update && apt-get upgrade -y
# Install individual system dependencies and clean up
RUN apt-get install -y \
git \
gcc \
g++ \
zlib1g-dev \
bedtools \
libbz2-dev \
liblzma-dev \
build-essential \
libcurl4-openssl-dev \
&& apt-get clean
# Navigate to the LDSC directory and install Python dependencies
WORKDIR $LDSC_DIR
# Check pip version
RUN pip --version
# Install Python dependencies one by one
RUN pip install bitarray==0.8 && \
pip show bitarray
RUN pip install nose==1.3 && \
pip show nose
RUN pip install pybedtools==0.7 || (echo "Failed to install pybedtools" && exit 1)
# RUN pip install pybedtools==0.7 && \
# pip show pybedtools
RUN pip install numpy==1.11 && \
pip show numpy
RUN pip install scipy==0.18 && \
pip show scipy
RUN pip install pandas==0.20 && \
pip show pandas
RUN pip install scikit-learn==0.18 && \
pip show scikit-learn
# Clone the LDSC repository
RUN git clone https://github.com/bulik/ldsc.git $LDSC_DIR
# Make the LDSC scripts executable
RUN chmod +x *.py
# Set PATH to include LDSC scripts
ENV PATH $LDSC_DIR:$PATH
# Default command to run when starting the container
CMD ["ldsc.py", "--help"]