# Latest Ubuntu as starter FROM ubuntu:latest # Install required dependencies RUN export PATH="$PATH:/root/.local/bin" RUN apt update RUN apt-get update RUN apt install -y git 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 numpy RUN pip3 install kaggle RUN pip3 install pandas RUN pip3 install pillow RUN pip3 install scikit-learn RUN pip3 install matplotlib RUN pip3 install torchvision RUN pip3 install sacred RUN pip3 install pymongo RUN pip3 install dvc RUN pip3 install 'dvc[ssh]' paramiko # Args ARG KAGGLE_USERNAME ARG KAGGLE_KEY ENV IS_DOCKER=True # Create app directory in image WORKDIR /app # Copy everything from jenkins to /app COPY . . # Create user RUN useradd -r -u 111 jenkins # Create kaggle catalog for authenticate RUN mkdir /.kaggle/ && chmod o+w /.kaggle