FROM ubuntu:18.04

RUN \
  apt-get update  && \
  apt-get upgrade -y
  
  
# Python package management and basic dependencies
RUN apt-get install -y curl python3.6 python3.6-dev python3.6-distutils python3-pip python3-venv

# Register the version in alternatives (so that python 3 can be executed with "python" instead of "python3", same for pip
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1

# Set python 3 as the default python, same for pip
RUN update-alternatives --set python /usr/bin/python3.6
RUN update-alternatives --set pip /usr/bin/pip3

RUN pip install --upgrade pip

## The MAINTAINER instruction sets the Author field of the generated images
MAINTAINER easyG <martin.baumgartner@ait.ac.at>

## DO NOT EDIT THESE 3 lines
RUN mkdir /physionet
COPY ./ /physionet
WORKDIR /physionet

## Install your dependencies here using apt-get etc.

## Do not edit if you have a requirements.txt
RUN pip install -r requirements.txt
