Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions Dockerfile.macos
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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 gcc python3-dev

# 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