From 72207992206ede4a52b6f95b0e339afe7a1c8b74 Mon Sep 17 00:00:00 2001 From: ulaniuk Date: Sun, 3 Apr 2022 20:36:11 +0200 Subject: [PATCH] Dockerfile --- Dockerfile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index c60c430..2c07818 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,23 @@ +FROM jenkins/jenkins:2.332.1-jdk11 +USER root +RUN apt-get update && apt-get install -y lsb-release +RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \ + https://download.docker.com/linux/debian/gpg +RUN echo "deb [arch=$(dpkg --print-architecture) \ + signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \ + https://download.docker.com/linux/debian \ + $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list +RUN apt-get update && apt-get install -y docker-ce-cli +USER jenkins +RUN jenkins-plugin-cli --plugins "blueocean:1.25.3 docker-workflow:1.28" + FROM python:3.7 - WORKDIR / - RUN pip install kaggle - RUN pip install pandas - RUN pip install sklearn - COPY KaggleV2-May-2016.csv ./ - COPY create_data.py ./ - COPY stats_data.py ./ # CMD ["python", "./create_data.py"]