Skip to content

Commit

Permalink
Remove chardet dependancy
Browse files Browse the repository at this point in the history
  • Loading branch information
ranade1 committed Mar 26, 2022
1 parent c2869cb commit 5f96d49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/container/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ docker_hue_build() {
cp -a $BUILD_DIR/${HUEUSER} $HUE_DIR
rm -f $HUE_DIR/${HUEUSER}/desktop/conf/*

# Remove chardet package
rm -rf $HUE_DIR/${HUEUSER}/tools/virtual-bootstrap/virtualenv_support

# Reduce Hue container size
rm -rf $HUE_DIR/${HUEUSER}/node_modules
rm -rf $HUE_DIR/${HUEUSER}/desktop/core/ext-eggs
Expand Down
3 changes: 3 additions & 0 deletions tools/container/hue/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ ADD supervisor-files/hue_server.conf /etc/supervisor.d/
ADD supervisor-files/hue_ktrenewer.conf /etc/supervisor.d/
RUN chown -R ${HUEUSER}:${HUEUSER} /etc/supervisord.conf && chown -R ${HUEUSER}:${HUEUSER} /etc/supervisor.d

# Remove chardet package
RUN rm -rf ${HUE_HOME}/build/env/lib/python3.8/site-packages/pip/_vendor/chardet

EXPOSE 8888 9111

WORKDIR ${HUE_HOME}
Expand Down

0 comments on commit 5f96d49

Please sign in to comment.