-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
26 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,33 +1,8 @@ | ||
FROM gitpod/workspace-base:2023-11-24-15-04-57 | ||
|
||
USER root | ||
# Install base utilities | ||
RUN apt-get update \ | ||
&& apt-get install -y build-essential \ | ||
&& apt-get install -y wget \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Always return to non privileged user | ||
USER gitpod | ||
|
||
# Install miniconda | ||
ENV CONDA_DIR /opt/conda | ||
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
/bin/bash ~/miniconda.sh -b -p /opt/conda | ||
|
||
# Put conda in path so we can use conda activate | ||
ENV PATH=$CONDA_DIR/bin:$PATH | ||
FROM condaforge/miniforge3:23.3.1-1 | ||
|
||
# Init conda and use the speedy libmamba solver | ||
RUN conda init && conda install -n base conda-libmamba-solver && conda config --set solver libmamba | ||
|
||
# Install dependencies | ||
RUN conda env update --file https://raw.githubusercontent.com/pandas-dev/pandas/main/environment.yml --prune | ||
|
||
#RUN chown -R gitpod:gitpod /opt/conda/pkgs | ||
#RUN chown -R gitpod:gitpod /opt/conda/envs | ||
#RUN chown -R gitpod:gitpod /home/gitpod/.conda | ||
#RUN chown -R gitpod:gitpod /home/gitpod/.cache | ||
|