Skip to content

Commit

Permalink
Remove package.json and yarn.lock from the prod image (apache#9814)
Browse files Browse the repository at this point in the history
Closes apache#9810

(cherry picked from commit 593a0dd)
  • Loading branch information
potiuk authored and Chris Fei committed Mar 5, 2021
1 parent 9168e54 commit 5ca4936
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ca4936

Please sign in to comment.