# Latest Ubuntu as starter FROM ubuntu:latest # Install required dependencies RUN apt update RUN apt-get update RUN apt install -y figlet RUN export PATH=”$PATH:/usr/local/bin/python” RUN apt install python3-pip -y RUN apt install unzip -y RUN pip3 install kaggle RUN pip3 install pandas RUN pip3 install pillow --global-option="build_ext" --global-option="--disable-zlib" --global-option="--disable-jpeg" RUN pip3 install scikit-learn RUN pip3 install matplotlib RUN mkdir ~/.kaggle/ RUN echo '{"username":"wirus006","key":"c3323e37d3f91a0914d0172ef3c7c30c"}' > ~/.kaggle/kaggle.json # Create app directory in image WORKDIR /app # Copy init dataset script to /app directory in image COPY ./init.py ./ # Download kaggle dataset RUN kaggle datasets download -d hakeem/atp-and-wta-tennis-data RUN unzip -o atp-and-wta-tennis-data.zip # Script executed after docker run CMD python3 ./init.py