Skip to content

Commit

Permalink
Updated container definition files to 0.9.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
cflerin committed May 13, 2019
1 parent cd7e758 commit caded79
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
20 changes: 14 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
FROM python:3.6.8-slim

RUN BUILDPKGS="build-essential apt-utils" && \
ENV DEBIAN_FRONTEND=noninteractive
RUN BUILDPKGS="build-essential apt-utils git" && \
apt-get update && \
apt-get install -y $BUILDPKGS && \
apt-get install -y procps && \
rm -rf /var/lib/apt/lists/*
apt-get install -y $BUILDPKGS

# install dependencies:
COPY requirements.txt /tmp/
RUN pip install --no-cache-dir -r /tmp/requirements.txt && \
pip install --no-cache-dir ipykernel

RUN pip install --no-cache-dir --upgrade pyscenic==0.9.7 ipykernel dask==1.0.0 pandas==0.23.4
# use version from argument (--build-arg version=0.9.7), or a default:
ARG version
ENV version ="0.9.9"
RUN pip install --no-cache-dir pyscenic==$version

RUN apt-get remove --purge -y $BUILDPKGS
RUN apt-get remove --purge -y $BUILDPKGS && \
rm -rf /var/lib/apt/lists/*

19 changes: 19 additions & 0 deletions Singularity.0.9.9
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
BootStrap: docker
From: python:3.6.8-slim

%files
./requirements.txt /tmp/

%post
BUILDPKGS="build-essential apt-utils" && \
apt-get update && \
apt-get install -y $BUILDPKGS && \
apt-get install -y procps

pip install --no-cache-dir -r /tmp/requirements.txt
pip install --no-cache-dir --upgrade pyscenic==0.9.9
pip install --no-cache-dir --upgrade ipykernel

apt-get remove --purge -y $BUILDPKGS && \
rm -rf /var/lib/apt/lists/*

0 comments on commit caded79

Please sign in to comment.