2022-04-03 22:17:18 +02:00
|
|
|
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
|
2022-04-03 22:34:55 +02:00
|
|
|
RUN pip3 install --upgrade pip
|
|
|
|
RUN pip3 install --upgrade Pillow
|
2022-04-03 22:17:18 +02:00
|
|
|
RUN pip3 install kaggle
|
|
|
|
RUN pip3 install pandas
|
|
|
|
RUN pip3 install scikit-learn
|
|
|
|
RUN pip3 install matplotlib
|
|
|
|
RUN mkdir ~/.kaggle/
|
2022-04-05 02:07:10 +02:00
|
|
|
COPY ./script.sh ./
|
2022-04-05 02:03:09 +02:00
|
|
|
RUN chmod a+x ./script.sh
|
2022-04-03 22:17:18 +02:00
|
|
|
# Create app directory in image
|
|
|
|
WORKDIR /app
|
2022-04-09 20:40:50 +02:00
|
|
|
COPY ./winequality-red.csv ./
|
2022-04-03 22:17:18 +02:00
|
|
|
# Copy init dataset script to /app directory in image
|
|
|
|
COPY ./data_processing.py ./
|
|
|
|
# Download kaggle dataset
|
2022-04-09 20:40:50 +02:00
|
|
|
#RUN kaggle datasets download -d uciml/red-wine-quality-cortez-et-al-2009
|
|
|
|
#RUN unzip -o red-wine-quality-cortez-et-al-2009.zip
|
2022-04-03 22:17:18 +02:00
|
|
|
# Script executed after docker run
|
|
|
|
CMD python3 ./data_processing.py
|