rominadqs edited a comment on issue #6075: Installation ERROR
URL: 
https://github.com/apache/incubator-superset/issues/6075#issuecomment-428989817
 
 
   To fix edit the Docker file to fix some dependencies :
   
   `
   FROM python:3.6
   
   RUN useradd --user-group --create-home --shell /bin/bash work
   
   ENV LANG=C.UTF-8 \
       LC_ALL=C.UTF-8 \
       HOME=/home/work
   
   RUN apt-get update -y
   
   RUN apt-get update -y \
       && apt-get install -y build-essential libssl-dev \
           libffi-dev python3-dev libsasl2-dev libldap2-dev
   
   RUN apt-get install -y vim less postgresql-client redis-tools
   
   RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
       && apt-get install -y nodejs
   
   RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
       && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee 
/etc/apt/sources.list.d/yarn.list \
       && apt-get update \
       && apt-get install -y yarn
   
   RUN mkdir $HOME/incubator-superset
   
   WORKDIR $HOME/incubator-superset
   
   COPY ./ ./
   
   RUN pip install --upgrade setuptools pip \
       && pip install -r requirements.txt -r requirements-dev.txt \
       && rm -rf /root/.cache/pip
   
   ENV PATH=/home/work/incubator-superset/superset/bin:$PATH \
       PYTHONPATH=./superset/:$PYTHONPATH
   
   COPY docker-entrypoint.sh /usr/local/bin/
   RUN chmod +x /usr/local/bin/docker-entrypoint.sh
   RUN ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards 
compat
   
   COPY ./superset ./superset
   RUN chown -R work:work $HOME
   
   USER work
   
   RUN cd superset/assets && yarn
   RUN cd superset/assets && npm run build
   
   ENTRYPOINT ["docker-entrypoint.sh"]
   
   HEALTHCHECK CMD ["curl", "-f", "http://localhost:8088/health";]
   
   EXPOSE 8088
   `

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to