I have copy some of the code from Dockerfile, ignore the number in the front of each line Hope this could do some help, this works in my production release. ### Steps of code - install nodejs, yarn, npm - modify your frontend code - cd superset/assets && yarn && npm run build
`# Install nodejs for custom build 48 # https://nodejs.org/en/download/package-manager/ 49 RUN curl -sL https://deb.nodesource.com/setup_9.x | bash - 50 RUN apt-get update && apt-get install -y nodejs 51 RUN npm install -g yarn 53 RUN ls ${SUPERSET_ASSETS_DIR} 54 COPY ./lls_superset_build/package.json ${SUPERSET_ASSETS_DIR}/package.json # i have modify something here RUN cd ${SUPERSET_ASSETS_DIR} && yarn 61 RUN cd ${SUPERSET_ASSETS_DIR} && yarn list webpack #### compile the frontend 49 # https://github.com/apache/incubator-superset/blob/master/docs/installation.rst#making-your-own-build 50 RUN cd ${SUPERSET_ASSETS_DIR} && yarn 51 # RUN cd ${SUPERSET_ASSETS_DIR} && yarn list webpack 56 RUN cd ${SUPERSET_ASSETS_DIR} && yarn list 58 RUN cd ${SUPERSET_ASSETS_DIR} && npm run build ` [ Full content available at: https://github.com/apache/incubator-superset/pull/5068 ] This message was relayed via gitbox.apache.org for [email protected]
