From d66494f958844e6e3ee6a0ed38cd64b0fa2df278 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Tue, 14 Jul 2020 16:34:21 +0200 Subject: [PATCH] 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 a8821788b9ec8..c06105dabbea6 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