|
1 |
| -FROM python:3.7.9-slim AS compile-image |
| 1 | +FROM python:3.10.6-slim-bullseye AS compile-image |
2 | 2 |
|
3 | 3 | ENV DEBIAN_FRONTEND=noninteractive
|
4 |
| -RUN BUILDPKGS="build-essential \ |
5 |
| - python3-dev libhdf5-dev libfreetype6-dev libtool \ |
6 |
| - m4 autoconf automake patch bison flex libpng-dev libopenblas-dev git \ |
7 |
| - tcl-dev tk-dev libxml2-dev zlib1g-dev libffi-dev cmake" && \ |
8 |
| - apt-get update && \ |
9 |
| - apt-get install -y --no-install-recommends apt-utils debconf locales && dpkg-reconfigure locales && \ |
10 |
| - apt-get install -y --no-install-recommends $BUILDPKGS |
11 | 4 |
|
| 5 | +# Install some dependencies: |
| 6 | +# - MulticoreTSNE: build-essential cmake |
| 7 | +# - git: to set the pySCENIC version |
| 8 | +RUN apt-get update && \ |
| 9 | + apt-get install -y --no-install-recommends build-essential cmake git |
| 10 | + |
| 11 | +# Create virtual environment. |
12 | 12 | RUN python -m venv /opt/venv
|
13 |
| -# Make sure we use the virtualenv: |
| 13 | + |
| 14 | +# Make sure we use the virtual environment. |
14 | 15 | ENV PATH="/opt/venv/bin:$PATH"
|
15 | 16 |
|
16 |
| -# install dependencies: |
| 17 | +# Install pySCENIC dependencies with pip. |
17 | 18 | COPY requirements_docker.txt /tmp/
|
18 |
| -RUN pip install --no-cache-dir --upgrade pip wheel && \ |
19 |
| - pip install --no-cache-dir -r /tmp/requirements_docker.txt |
| 19 | +RUN pip install --no-cache-dir -r /tmp/requirements.txt |
20 | 20 |
|
21 |
| -# use version from argument (--build-arg version=0.11.0), or a default: |
22 |
| -RUN pip install --no-cache-dir scanpy==1.7.2 |
| 21 | +# Install scanpy, MulticoreTSNE and ipykernel. |
| 22 | +#COPY requirements_docker_with_scanpy.txt /tmp/ |
| 23 | +#RUN pip install --no-cache-dir -r /tmp/requirements_docker_with_scanpy.txt |
23 | 24 |
|
24 |
| -# install pySCENIC from local copy: |
25 |
| -COPY pySCENIC /tmp/pySCENIC |
| 25 | +# Install pySCENIC from local copy: |
| 26 | +COPY . /tmp/pySCENIC |
26 | 27 | RUN cd /tmp/pySCENIC && \
|
27 | 28 | pip install . && \
|
28 | 29 | cd .. && rm -rf pySCENIC
|
29 | 30 |
|
30 |
| -FROM python:3.7.9-slim AS build-image |
| 31 | +FROM python:3.10.6-slim-bullseye AS build-image |
31 | 32 |
|
32 | 33 | RUN apt-get -y update && \
|
33 | 34 | apt-get -y --no-install-recommends install \
|
|
0 commit comments