-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathDockerfile
25 lines (21 loc) · 939 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
FROM python:3.9-buster
#RUN pip install pipx && \
# pipx install poetry==1.2.0
RUN pip install poetry==1.8.3
RUN mkdir /install && mkdir /install/depmapomics && mkdir /install/mgenepy
# first create these as if they are empty modules,
# just a list of dependencies, so that we can run
# 'poetry install' and get a layer which has all our
# dependencies. The actual code for these modules will be added
# later, but do it as a different layer, so that the `poetry install`
# step can be avoided if only a py file changed.
COPY pyproject.toml poetry.lock README.md /install/
COPY depmapomics/__init__.py /install/depmapomics/__init__.py
COPY mgenepy/__init__.py /install/mgenepy/__init__.py
RUN cd /install && poetry config virtualenvs.create false
RUN cd /install && poetry install
RUN pip install biomart
# now add on the py code
COPY depmapomics /install/depmapomics
COPY mgenepy /install/mgenepy
RUN cd /install && poetry install