-
Notifications
You must be signed in to change notification settings - Fork 184
/
Dockerfile
47 lines (34 loc) · 1.19 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
FROM python:3.10.6-slim-bullseye AS compile-image
ENV DEBIAN_FRONTEND=noninteractive
# Install git to be able to set the pySCENIC version.
RUN apt-get update && \
apt-get -y --no-install-recommends install git
# Create virtual environment.
RUN python -m venv /opt/venv
# Make sure we use the virtual environment.
ENV PATH="/opt/venv/bin:$PATH"
# Install pySCENIC dependencies with pip.
COPY requirements.txt /tmp/
RUN pip install --no-cache-dir -r /tmp/requirements.txt
# Install scanpy, MulticoreTSNE and ipykernel.
#COPY requirements_docker_with_scanpy.txt /tmp/
#RUN pip install --no-cache-dir -r /tmp/requirements_docker_with_scanpy.txt
# Install pySCENIC from local copy:
COPY . /tmp/pySCENIC
RUN cd /tmp/pySCENIC && \
pip install . && \
cd .. && rm -rf pySCENIC
FROM python:3.10.6-slim-bullseye AS build-image
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y --no-install-recommends install \
# Need to run ps
procps \
libxml2 \
less && \
rm -rf /var/cache/apt/* && \
rm -rf /var/lib/apt/lists/*
COPY --from=compile-image /opt/venv /opt/venv
# Make sure we use the virtualenv:
ENV PATH="/opt/venv/bin:$PATH"
EXPOSE 8787