forked from nansencenter/docker-nansat-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build images for multiple python versions
- Loading branch information
Showing
3 changed files
with
32 additions
and
5 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
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ FROM continuumio/miniconda3 | |
LABEL maintainer="Anton Korosov <[email protected]>" | ||
LABEL purpose="Python libs for developing and running Nansat" | ||
|
||
ARG PYTHON_VERSION=3.7 | ||
|
||
ENV PYTHONUNBUFFERED=1 \ | ||
PYTHONPATH=/src \ | ||
MOD44WPATH=/usr/share/MOD44W/ | ||
|
@@ -15,8 +17,9 @@ RUN apt-get update \ | |
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY environment.yml /tmp/environment.yml | ||
RUN sed -i -E "s/^(\s+- python=).*$/\1${PYTHON_VERSION}/" /tmp/environment.yml | ||
|
||
RUN conda install python=3.7 setuptools \ | ||
RUN conda install python="${PYTHON_VERSION}" setuptools \ | ||
&& conda update conda \ | ||
&& conda env update -n base --file /tmp/environment.yml \ | ||
&& rm /tmp/environment.yml \ | ||
|
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 |
---|---|---|
|
@@ -3,13 +3,17 @@ FROM continuumio/miniconda3 as builder | |
LABEL maintainer="Anton Korosov <[email protected]>" | ||
LABEL purpose="Python libs for developing and running Nansat" | ||
|
||
ARG PYTHON_VERSION=3.7 | ||
|
||
# Install build tools | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
gcc \ | ||
wget | ||
|
||
COPY environment.yml /tmp/environment.yml | ||
RUN sed -i -E "s/^(\s+- python=).*$/\1${PYTHON_VERSION}/" /tmp/environment.yml | ||
|
||
RUN conda env create -f /tmp/environment.yml | ||
|
||
RUN wget -nc -nv -P /usr/share/MOD44W https://github.com/nansencenter/mod44w/raw/master/MOD44W.tgz && \ | ||
|