-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated container definition files to 0.9.9.
- Loading branch information
Showing
2 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* | ||
|