2022-03-31 20:15:29 +02:00
|
|
|
# Latest Ubuntu as starter
|
2022-03-28 11:23:11 +02:00
|
|
|
FROM ubuntu:latest
|
|
|
|
|
2022-03-31 20:15:29 +02:00
|
|
|
# Install required dependencies
|
|
|
|
RUN apt update
|
2022-04-02 11:42:10 +02:00
|
|
|
RUN apt-get update
|
|
|
|
RUN apt install -y figlet
|
2022-03-31 20:15:29 +02:00
|
|
|
RUN export PATH=”$PATH:/usr/local/bin/python”
|
|
|
|
RUN apt install python3-pip -y
|
|
|
|
RUN apt install unzip -y
|
2022-04-02 11:42:10 +02:00
|
|
|
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
|
2022-03-28 11:23:11 +02:00
|
|
|
|
2022-03-31 20:15:29 +02:00
|
|
|
# Create app directory in image
|
2022-03-28 11:23:11 +02:00
|
|
|
WORKDIR /app
|
|
|
|
|
2022-05-06 20:29:31 +02:00
|
|
|
COPY . .
|
|
|
|
ARG KAGGLE_USERNAME
|
|
|
|
ARG KAGGLE_KEY
|
2022-03-28 11:23:11 +02:00
|
|
|
|
2022-03-31 20:15:29 +02:00
|
|
|
# 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
|
2022-05-06 20:29:31 +02:00
|
|
|
RUN python3 ./init.py
|
|
|
|
RUN chmod a+rwx -R *
|
|
|
|
RUN ls -la
|