ium_444354/Dockerfile

25 lines
855 B
Docker
Raw Normal View History

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/
RUN echo '{"username":"riraasaa","key":"1b1376b538ecd7da9e79b94d218ae3ec"}' > ~/.kaggle/kaggle.json
# Create app directory in image
WORKDIR /app
# Copy init dataset script to /app directory in image
COPY ./data_processing.py ./
# Download kaggle dataset
RUN kaggle datasets download -d uciml/red-wine-quality-cortez-et-al-2009
RUN unzip -o red-wine-quality-cortez-et-al-2009.zip
# Script executed after docker run
CMD python3 ./data_processing.py