Merge pull request #3 from itssingh/gitpod

Add Gitpod and Dockerfile
This commit is contained in:
Sarita Singh
2021-09-08 18:33:01 +05:30
committed by GitHub
2 changed files with 31 additions and 0 deletions

10
.gitpod.yml Normal file
View File

@@ -0,0 +1,10 @@
image:
file: Dockerfile
ports:
- port: 8888
visibility: public
onOpen: notify
workspaceLocation: xbasic
checkoutLocation: xbasic
tasks:
- init: conda activate base

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
wget \
cmake \
g++ \
sudo \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
RUN conda install -c conda-forge jupyter xeus xtl nlohmann_json cppzmq -y