1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/superset/arm/Dockerfile

76 lines
2.2 KiB
Docker
Raw Normal View History

2018-07-28 02:45:54 +02:00
#
# Dockerfile for superset-arm
#
FROM resin/rpi-raspbian:stretch
MAINTAINER EasyPi Software Foundation
# Superset version
ARG SUPERSET_VERSION=0.26.3
# Configure environment
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
PYTHONPATH=/etc/superset:/home/superset:$PYTHONPATH \
SUPERSET_REPO=apache/incubator-superset \
SUPERSET_VERSION=${SUPERSET_VERSION} \
SUPERSET_HOME=/var/lib/superset
# Create superset user & install dependencies
RUN useradd -U -m superset && \
mkdir /etc/superset && \
mkdir ${SUPERSET_HOME} && \
chown -R superset:superset /etc/superset && \
chown -R superset:superset ${SUPERSET_HOME} && \
apt-get update && \
apt-get install -y \
build-essential \
curl \
default-libmysqlclient-dev \
freetds-dev \
freetds-bin \
libffi-dev \
libldap2-dev \
libpq-dev \
libsasl2-dev \
libssl-dev \
2018-07-28 04:53:46 +02:00
python3-dev && \
2018-07-28 02:45:54 +02:00
apt-get clean && \
rm -r /var/lib/apt/lists/* && \
curl https://raw.githubusercontent.com/${SUPERSET_REPO}/${SUPERSET_VERSION}/requirements.txt -o requirements.txt && \
2018-07-28 04:53:46 +02:00
curl -sSL https://bootstrap.pypa.io/get-pip.py | python3 && \
2018-07-28 02:45:54 +02:00
pip3 install --no-cache-dir -r requirements.txt && \
pip3 install --no-cache-dir \
Werkzeug==0.12.1 \
flask-cors==3.0.3 \
flask-mail==0.9.1 \
flask-oauth==0.12 \
flask_oauthlib==0.9.3 \
gevent==1.2.2 \
impyla==0.14.0 \
infi.clickhouse-orm==0.9.8 \
mysqlclient==1.3.7 \
psycopg2==2.6.1 \
pyathena==1.2.5 \
pyhive==0.5.1 \
pyldap==2.4.28 \
pymssql==2.1.3 \
redis==2.10.5 \
sqlalchemy-clickhouse==0.1.3.post0 \
sqlalchemy-redshift==0.5.0 \
superset==${SUPERSET_VERSION} && \
rm requirements.txt
# Configure Filesystem
COPY superset /usr/local/bin
VOLUME /home/superset \
/etc/superset \
/var/lib/superset
WORKDIR /home/superset
# Deploy application
EXPOSE 8088
HEALTHCHECK CMD ["curl", "-f", "http://localhost:8088/health"]
CMD ["gunicorn", "-w", "2", "--timeout", "60", "-b", "0.0.0.0:8088", "--limit-request-line", "0", "--limit-request-field_size", "0", "superset:app"]
USER superset