Commit df2b736b authored by Vincent Noël's avatar Vincent Noël
Browse files

Added docker, and link to mybinder

parent 73e8083a
FROM ubuntu:bionic
MAINTAINER Vincent Noel <contact@vincent-noel.fr>
USER root
# create user with a home directory
RUN adduser --disabled-password \
--gecos "Default user" \
--uid 1000 \
user
RUN apt-get -qq update && apt-get install -yq flex bison python3-pip
RUN pip3 install jupyter notebook scipy matplotlib hublib
WORKDIR /home/user
COPY . /home/user
RUN mkdir /home/user/bin/__pycache__
RUN chown -R 1000 /home/user
USER user
ENV CACHEDIR /home/user/bin/__pycache__
RUN cd /home/user/src; make; cp myproj ../bin; cd ../..
CMD cd /home/user; jupyter notebook --ip=0.0.0.0 --NotebookApp.token=''
### Run in Binder : [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/vincent-noel/pb4covid19/master?filepath=pb4covid19.ipynb)
### Run locally with Docker and Docker-compose
```
docker-compose up -d
```
And then open your browser to this url : http://localhost:8888/notebooks/pb4covid19.ipynb
### Run locally with Docker
```
docker build -t pb4covid19 .
docker run -p 8888:8888 -d pb4covid19
```
And then open your browser to this url : http://localhost:8888/notebooks/pb4covid19.ipynb
version: "3.3"
services:
pb4covid19:
build:
context: ./
dockerfile: Dockerfile
image: pb4covid19
container_name: pb4covid19
ports:
- "8888:8888"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment