This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit d66494f958844e6e3ee6a0ed38cd64b0fa2df278
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Jul 14 16:34:21 2020 +0200

    Remove package.json and yarn.lock from the prod image (#9814)
    
    Closes #9810
    
    (cherry picked from commit 593a0ddaae2deaa283c260a32187cf3c27ec3e7d)
---
 Dockerfile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Dockerfile b/Dockerfile
index a882178..c06105d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -225,6 +225,7 @@ RUN 
AIRFLOW_SITE_PACKAGE="/root/.local/lib/python${PYTHON_MAJOR_MINOR_VERSION}/s
         yarn --cwd "${WWW_DIR}" install --frozen-lockfile --no-cache; \
         yarn --cwd "${WWW_DIR}" run prod; \
         rm -rf "${WWW_DIR}/node_modules"; \
+        rm -vf 
"${WWW_DIR}"/{package.json,yarn.lock,.eslintignore,.eslintrc,.stylelintignore,.stylelintrc,compile_assets.sh,webpack.config.js}
 ;\
     fi
 
 # make sure that all directories and files in .local are also group accessible

Reply via email to