You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/01/17 10:35:48 UTC

[GitHub] potiuk commented on a change in pull request #4543: [AIRFLOW-3718] Multi-layered version of the docker image

potiuk commented on a change in pull request #4543: [AIRFLOW-3718] Multi-layered version of the docker image
URL: https://github.com/apache/airflow/pull/4543#discussion_r248617340
 
 

 ##########
 File path: Dockerfile
 ##########
 @@ -16,26 +16,83 @@
 
 FROM python:3.6-slim
 
-COPY . /opt/airflow/
+SHELL ["/bin/bash", "-c"]
+
+# Make sure noninteractie debian install is used
+ENV DEBIAN_FRONTEND=noninteractive
+
+# Increase the value to force renstalling of all apt-get dependencies
+ENV FORCE_REINSTALL_APT_GET_DEPENDENCIES=1
+
+# Install core build dependencies
+RUN apt-get update \
 
 Review comment:
   No problem with that. Those two dependency lists are defined separately in the original image so i split them as well, but there is no particular reason to do it. 
   
   One reason why you would want to separate it and do separate installs (I often do that) is when you find that you need to add extra tool that you want to use (tree or top or whatever). When they are not used for build but you find it useful to have when you enter the container. Then it makes sense to add extra 'apt-get' at the end of the file so that you do not have to rebuild the whole image.
   
   But this is not the case here, so I can easily combine it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services