Skip to content

Commit

Permalink
Container definitions: updated to 0.9.6, changed base images to
Browse files Browse the repository at this point in the history
python3.6.8-slim, streamlined install of build dependencies and cleanup.
  • Loading branch information
cflerin committed Mar 18, 2019
1 parent d9a2106 commit 486d602
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Dockerfile
@@ -1,8 +1,12 @@
FROM continuumio/miniconda3
FROM python:3.6.8-slim

RUN apt-get update && apt-get install -y build-essential
RUN conda create -n scenic python=3.6.7
RUN echo "source activate scenic" > ~/.bashrc
ENV PATH /opt/conda/envs/scenic/bin:$PATH
RUN pip install --no-cache-dir --upgrade pyscenic dask==1.0.0 pandas==0.23.4
RUN BUILDPKGS="build-essential apt-utils" && \
apt-get update && \
apt-get install -y $BUILDPKGS && \
apt-get install -y procps && \
rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir --upgrade pyscenic==0.9.6 dask==1.0.0 pandas==0.23.4

RUN apt-get remove --purge -y $BUILDPKGS

12 changes: 12 additions & 0 deletions Singularity.0.9.6
@@ -0,0 +1,12 @@
BootStrap: docker
From: python:3.6.8-slim

%post
BUILDPKGS="build-essential apt-utils" && \
apt-get update && \
apt-get install -y $BUILDPKGS && \
apt-get install -y procps && \
rm -rf /var/lib/apt/lists/*
pip install --no-cache-dir --upgrade pyscenic==0.9.6 dask==1.0.0 pandas==0.23.4
apt-get remove --purge -y $BUILDPKGS

0 comments on commit 486d602

Please sign in to comment.