mirror of
https://github.com/avinal/xeus-basic.git
synced 2026-01-10 23:28:36 +05:30
fix Dockerfile and Gitpod
Signed-off-by: Sarita Singh <saritasingh.0425@gmail.com>
This commit is contained in:
@@ -7,4 +7,6 @@ ports:
|
|||||||
workspaceLocation: xbasic
|
workspaceLocation: xbasic
|
||||||
checkoutLocation: xbasic
|
checkoutLocation: xbasic
|
||||||
tasks:
|
tasks:
|
||||||
- init: conda activate base
|
- init: |
|
||||||
|
export PATH="/home/gitpod/miniconda3/bin/:$PATH"
|
||||||
|
conda activate base
|
||||||
|
|||||||
16
Dockerfile
16
Dockerfile
@@ -1,21 +1,23 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
USER root
|
||||||
|
WORKDIR /xbasic
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
git \
|
git \
|
||||||
wget \
|
wget \
|
||||||
cmake \
|
cmake \
|
||||||
|
make \
|
||||||
g++ \
|
g++ \
|
||||||
sudo \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV PATH="/root/miniconda3/bin:${PATH}"
|
ENV PATH="/xbasic/miniconda3/bin:${PATH}"
|
||||||
ARG PATH="/root/miniconda3/bin:${PATH}"
|
ARG PATH="/xbasic/miniconda3/bin:${PATH}"
|
||||||
RUN wget \
|
RUN wget --no-check-certificate \
|
||||||
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
|
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
|
||||||
&& mkdir /root/.conda \
|
&& mkdir /xbasic/.conda \
|
||||||
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
|
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /xbasic/miniconda3 \
|
||||||
&& rm -f Miniconda3-latest-Linux-x86_64.sh
|
&& 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
|
||||||
|
|||||||
Reference in New Issue
Block a user