potiuk commented on a change in pull request #4938: [AIRFLOW-4117]
Multi-staging Image - Travis CI tests [Step 3/3]
URL: https://github.com/apache/airflow/pull/4938#discussion_r303576669
##########
File path: Dockerfile
##########
@@ -398,6 +398,10 @@ WORKDIR ${AIRFLOW_SOURCES}
ENV PATH="${HOME}:${PATH}"
+# Disable writing .pyc files - slightly slower imports but not messing around
when switching
+# Python version and avoids problems with root-owned .pyc files in host
+ENV PYTHONDONTWRITEBYTECODE="true"
Review comment:
Not only. Docker-compose is used only to run environment for tests. Then for
pylint tests, docs building etc we use pure docker (we need much smaller slim
image and we do not need any of the other containers like postgres etc.) . We
could set the environment in both docker-compose and in docker instructions.
But yeah. You are right that setting it in the entrypoint script is not a good
idea as well :). I will move it to the "host" scripts.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services