From 39d9ec5989131a18116d20aebf2c775147303264 Mon Sep 17 00:00:00 2001 From: Gezim Sejdiu Date: Thu, 15 Apr 2021 00:28:39 +0200 Subject: [PATCH] Revert "fix python template DockerFile " --- template/python/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/template/python/Dockerfile b/template/python/Dockerfile index dfdbc25..ed8006c 100644 --- a/template/python/Dockerfile +++ b/template/python/Dockerfile @@ -2,14 +2,14 @@ FROM bde2020/spark-submit:3.1.1-hadoop3.2 LABEL maintainer="Gezim Sejdiu , Giannis Mouchakis " -# Copy the source code -COPY . /app - COPY template.sh / # Copy the requirements.txt first, for separate dependency resolving and downloading -COPY requirements.txt /app/ -RUN cd /app \ +ONBUILD COPY requirements.txt /app/ +ONBUILD RUN cd /app \ && pip3 install -r requirements.txt +# Copy the source code +ONBUILD COPY . /app + CMD ["/bin/bash", "/template.sh"]