# FROM nvidia/cuda:11.0-cudnn8-runtime-ubuntu18.04

# ## The MAINTAINER instruction sets the author field of the generated images.
# LABEL maintainer="stefano4.magni@mail.polimi.com" 
# LABEL "version"="1.0"
# LABEL description = " docker file for Physionet challenge. Team PhysioNauts"

# # Keeps Python from generating .pyc files in the container
# ENV PYTHONDONTWRITEBYTECODE=1
# # Turns off buffering for easier container logging
# ENV PYTHONUNBUFFERED=1


# RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y curl
# RUN apt-get -y install python3.8
# RUN apt-get -y install python3-pip

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

# ## Include the following line if you have a requirements.txt file.
# RUN echo 'alias python="python3.8"' >> ~/.bashrc
# RUN python3.8 -m pip install --upgrade pip
# RUN python3.8 -m pip install -r requirements.txt

# CMD exec /bin/bash -c "trap : TERM INT; sleep infinity & wait"



## FROM nvidia/cuda:10.1-cudnn7-devel
FROM tensorflow/tensorflow:latest-gpu
#The cuda version must be the one indicated in the challenge directives
#ENV NVIDIA_DRIVER_VERSION='nvidiaDriverVersion: "418.40.04"'

## The MAINTAINER instruction sets the author field of the generated images.
LABEL maintainer="andrea.sansonetti@mail.polimi.com" 
LABEL "version"="1.0"
LABEL description = " docker file for Physionet challenge. Team PhysioNauts"

# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1

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

## Include the following line if you have a requirements.txt file.
RUN apt-get -y install python3.8
RUN rm /usr/bin/python3
RUN ln -s python3.8 /usr/bin/python3
RUN python -m pip install --upgrade pip
RUN python -m pip install -r requirements.txt


CMD exec /bin/bash -c "trap : TERM INT; sleep infinity & wait"