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"]