Skip to content

Commit

Permalink
simplify greatly
Browse files Browse the repository at this point in the history
  • Loading branch information
lithomas1 committed Dec 7, 2023
1 parent 2342fb6 commit 1835adb
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions gitpod/gitpod.Dockerfile
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

0 comments on commit 1835adb

Please sign in to comment.