Skip to content

Commit

Permalink
Merge pull request #123 from big-data-europe/revert-87-fix_template_p…
Browse files Browse the repository at this point in the history
…ython

Revert "fix python template DockerFile "
  • Loading branch information
GezimSejdiu authored Apr 14, 2021
2 parents 27bc56c + 39d9ec5 commit 866e8b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions template/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ FROM bde2020/spark-submit:3.1.1-hadoop3.2

LABEL maintainer="Gezim Sejdiu <[email protected]>, Giannis Mouchakis <[email protected]>"

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

0 comments on commit 866e8b0

Please sign in to comment.