-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
37 lines (25 loc) · 912 Bytes
/
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
FROM continuumio/miniconda3:4.11.0
RUN apt-get update
#NOTE: I don't know whether the --fix-broken is actually needed
RUN apt-get -y install gcc zip libdeflate-dev libcurl4-openssl-dev --fix-broken
WORKDIR /home
RUN mkdir GwasQcPipeline
RUN mkdir data
WORKDIR /home/GwasQcPipeline
ENV PYTHONPATH=${PYTHONPATH}:${PWD}
COPY . .
#NOTE: I don't think we need a special env inside the container
#RUN conda create -n cgr-dev python=3.8 poetry make -y
#RUN echo "conda activate cgr-dev" >> ~/.bashrc
#RUN conda init bash && conda activate cgr-dev
RUN conda install poetry make -y
RUN conda install -c conda-forge mamba
RUN poetry config virtualenvs.create false
RUN poetry install --without dev
#NOTE: Aren't these also not needed? Unless somehow the docs adds the help for the CLI...
#RUN make -C docs html
#RUN pytest -v
#RUN pre-commit install
#RUN pre-commit run
WORKDIR /home/data
ENTRYPOINT [ "cgr" ]