This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 593a0dd Remove package.json and yarn.lock from the prod image (#9814)
593a0dd is described below
commit 593a0ddaae2deaa283c260a32187cf3c27ec3e7d
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
---
Dockerfile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Dockerfile b/Dockerfile
index 4d182e1..55cbe2f5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -224,6 +224,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