31 lines
780 B
Docker
31 lines
780 B
Docker
# 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
|
|
|
|
# Create app directory in image
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
ARG KAGGLE_USERNAME
|
|
ARG KAGGLE_KEY
|
|
|
|
# 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
|
|
RUN python3 ./init.py
|
|
RUN chmod a+rwx -R *
|
|
RUN ls -la |