diff --git a/.gitpod.yml b/.gitpod.yml index e73f110..61bf113 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -7,4 +7,6 @@ ports: workspaceLocation: xbasic checkoutLocation: xbasic tasks: - - init: conda activate base + - init: | + export PATH="/home/gitpod/miniconda3/bin/:$PATH" + conda activate base diff --git a/Dockerfile b/Dockerfile index 3637bca..15d0e5b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,23 @@ FROM ubuntu:latest +USER root +WORKDIR /xbasic ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y --no-install-recommends \ git \ wget \ cmake \ + make \ g++ \ - sudo \ && rm -rf /var/lib/apt/lists/* -ENV PATH="/root/miniconda3/bin:${PATH}" -ARG PATH="/root/miniconda3/bin:${PATH}" -RUN wget \ +ENV PATH="/xbasic/miniconda3/bin:${PATH}" +ARG PATH="/xbasic/miniconda3/bin:${PATH}" +RUN wget --no-check-certificate \ https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ - && mkdir /root/.conda \ - && bash Miniconda3-latest-Linux-x86_64.sh -b \ + && mkdir /xbasic/.conda \ + && bash Miniconda3-latest-Linux-x86_64.sh -b -p /xbasic/miniconda3 \ && rm -f Miniconda3-latest-Linux-x86_64.sh -RUN conda install -c conda-forge jupyter xeus xtl nlohmann_json cppzmq -y +RUN conda install -c conda-forge jupyter xeus xtl nlohmann_json cppzmq -y && conda init