1
- FROM continuumio/miniconda3
1
+ FROM quay.io/condaforge/miniforge3
2
2
3
3
# if you forked pandas, you can pass in your own GitHub username to use your fork
4
4
# i.e. gh_username=myname
@@ -15,10 +15,6 @@ RUN apt-get update \
15
15
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
16
16
&& apt-get -y install git iproute2 procps iproute2 lsb-release \
17
17
#
18
- # Install C compilers (gcc not enough, so just went with build-essential which admittedly might be overkill),
19
- # needed to build pandas C extensions
20
- && apt-get -y install build-essential \
21
- #
22
18
# cleanup
23
19
&& apt-get autoremove -y \
24
20
&& apt-get clean -y \
@@ -39,9 +35,14 @@ RUN mkdir "$pandas_home" \
39
35
# we just update the base/root one from the 'environment.yml' file instead of creating a new one.
40
36
#
41
37
# Set up environment
42
- RUN conda env update -n base -f "$pandas_home/environment.yml"
38
+ RUN conda install -y mamba
39
+ RUN mamba env update -n base -f "$pandas_home/environment.yml"
43
40
44
41
# Build C extensions and pandas
45
- RUN cd "$pandas_home" \
42
+ SHELL ["/bin/bash" , "-c" ]
43
+ RUN . /opt/conda/etc/profile.d/conda.sh \
44
+ && conda activate base \
45
+ && cd "$pandas_home" \
46
+ && export \
46
47
&& python setup.py build_ext -j 4 \
47
48
&& python -m pip install -e .
0 commit comments