fix Dockerfile and Gitpod

Signed-off-by: Sarita Singh <saritasingh.0425@gmail.com>
This commit is contained in:
Sarita Singh
2021-09-08 18:43:14 +05:30
parent ed8007d849
commit f00fe7af99
2 changed files with 12 additions and 8 deletions

View File

@@ -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

View File

@@ -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