|
1 | 1 | #
|
2 |
| -# Dockerfile for pandas development |
| 2 | +# micromamba.Dockerfile for pandas development |
3 | 3 | #
|
4 | 4 | # Usage:
|
5 | 5 | # -------
|
6 | 6 | #
|
7 | 7 | # To make a local build of the container, from the 'Docker-dev' directory:
|
8 |
| -# docker build --rm -f "Dockerfile" -t <build-tag> "." |
| 8 | +# docker build --rm -f "micromamba.Dockerfile" -t <build-tag> "." |
9 | 9 | #
|
10 | 10 | # To use the container use the following command. It assumes that you are in
|
11 | 11 | # the root folder of the pandas git repository, making it available as
|
@@ -38,7 +38,6 @@ ENV CONDA_DIR=/home/gitpod/mambaforge3 \
|
38 | 38 | ENV PATH=${CONDA_DIR}/bin:$PATH \
|
39 | 39 | WORKSPACE=/workspace/pandas
|
40 | 40 |
|
41 |
| - |
42 | 41 | # -----------------------------------------------------------------------------
|
43 | 42 | # ---- Creating as root - note: make sure to change to gitpod in the end ----
|
44 | 43 | USER root
|
@@ -84,15 +83,12 @@ COPY ./gitpod/workspace_config /usr/local/bin/workspace_config
|
84 | 83 | RUN chmod a+rx /usr/local/bin/workspace_config && \
|
85 | 84 | workspace_config
|
86 | 85 |
|
87 |
| -# Copy conda environment file into the container - this needs to exists inside |
88 | 86 | # the container to create a conda environment from it
|
89 | 87 | COPY environment.yml /tmp/environment.yml
|
90 | 88 |
|
91 |
| -# ----------------------------------------------------------------------------- |
92 |
| -# ---- Create conda environment ---- |
93 |
| -# Install pandas dependencies |
94 | 89 | RUN mamba env create -f /tmp/environment.yml
|
95 |
| -RUN conda activate ${CONDA_ENV} && \ |
| 90 | +# ---- Create conda environment ---- |
| 91 | +RUN conda activate $CONDA_ENV && \ |
96 | 92 | mamba install ccache -y && \
|
97 | 93 | # needed for docs rendering later on
|
98 | 94 | python -m pip install --no-cache-dir sphinx-autobuild && \
|
|
0 commit comments