2019-06-13 16:01:59 +03:00
|
|
|
FROM mozilla/redash:rc
|
2018-08-08 19:28:25 +03:00
|
|
|
|
2019-06-20 16:36:48 +03:00
|
|
|
ENV PATH="/home/redash/.local/bin:$PATH" \
|
|
|
|
PYTHONUNBUFFERED=0
|
2019-06-13 16:02:24 +03:00
|
|
|
|
2018-08-08 19:28:25 +03:00
|
|
|
USER root
|
2019-06-20 16:36:48 +03:00
|
|
|
RUN apt-get update -yq \
|
|
|
|
&& apt-get install curl gnupg libecpg-dev -yq \
|
|
|
|
&& curl -sL https://deb.nodesource.com/setup_10.x | bash \
|
|
|
|
&& apt-get install nodejs -yq
|
2019-02-26 13:56:11 +03:00
|
|
|
RUN pip uninstall -qy redash-stmo \
|
2019-07-01 22:44:45 +03:00
|
|
|
&& pip install -U pip virtualenv
|
2019-03-06 14:14:53 +03:00
|
|
|
RUN mkdir -p /home/redash/.cache /home/redash/.local /app/node_modules && \
|
|
|
|
chown -R redash /home/redash/.cache /home/redash/.local /app/node_modules
|
2019-06-13 21:03:37 +03:00
|
|
|
|
|
|
|
COPY . /extension
|
|
|
|
RUN chown -R redash /extension
|
2018-08-08 19:28:25 +03:00
|
|
|
USER redash
|
|
|
|
|
2019-02-26 13:56:11 +03:00
|
|
|
ENTRYPOINT ["/extension/bin/docker-entrypoint"]
|