-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
54 lines (39 loc) · 1.26 KB
/
Dockerfile
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
# Set base image
FROM continuumio/miniconda3
LABEL program="VEP-Benchmark"
LABEL description="Title"
LABEL version="1.0"
LABEL maintainer="[email protected]"
# Install necessary packages
RUN apt-get update && apt-get install -y \
wget \
bzip2 \
ca-certificates \
curl \
git \
tabix \
gcc \
cpanminus \
&& apt-get clean
WORKDIR /BenchVEP
ENV PATH="/opt/conda/bin:$PATH"
ENV CONDA_PREFIX="/opt/conda"
# # Copy the dependencies file to the working directory
SHELL ["/bin/bash", "--login", "-c"]
RUN echo "yes" | cpan DBI
RUN echo "yes" | cpan DBD::SQLite
COPY envs envs
# # Install dependencies using Conda
RUN conda env create -f envs/environment.yml
# PhDSNP conda
RUN conda create -n phdsnp python=2 scipy
RUN echo $'#!/bin/bash\n\
USER_ID=${LOCAL_UID:-9001}\n\
GROUP_ID=${LOCAL_GID:-9001}\n\
useradd -u $USER_ID -o -m user\n\
groupmod -g $GROUP_ID user\n\
/data/scripts/all_pipeline_light.sh "$@"' > entrypoint.sh && chmod +x entrypoint.sh
ENTRYPOINT ["conda", "run", "-n", "VEP", "--no-capture-output", "/BenchVEP/entrypoint.sh" ]
# # Command to run on container start
# ENTRYPOINT ["bash", "scripts/all_pipeline_light.sh"]
# ENTRYPOINT ["conda", "run", "-n", "VEP", "exec", "stdbuf", "-oL", "scripts/all_pipeline_light.sh"]