1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 00:08:49 +00:00
dockerfiles/superset/arm/Dockerfile

83 lines
2.3 KiB
Docker
Raw Normal View History

2018-07-28 00:45:54 +00:00
#
# Dockerfile for superset-arm
#
2019-10-06 10:02:50 +00:00
FROM arm32v7/debian:buster
2018-07-28 00:45:54 +00:00
MAINTAINER EasyPi Software Foundation
# Configure environment
2021-04-26 11:26:58 +00:00
ENV SUPERSET_VERSION=1.1.0 \
2019-10-20 01:26:55 +00:00
SUPERSET_REPO=apache/incubator-superset \
SUPERSET_HOME=/var/lib/superset \
2020-09-15 05:00:51 +00:00
PYTHONPATH=/etc/superset:/home/superset:$PYTHONPATH \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8
2019-01-11 10:00:39 +00:00
ENV GUNICORN_BIND=0.0.0.0:8088 \
GUNICORN_LIMIT_REQUEST_FIELD_SIZE=0 \
GUNICORN_LIMIT_REQUEST_LINE=0 \
GUNICORN_TIMEOUT=60 \
2020-09-15 05:00:51 +00:00
GUNICORN_WORKERS=3 \
GUNICORN_THREADS=4
ENV GUNICORN_CMD_ARGS="--workers ${GUNICORN_WORKERS} --threads ${GUNICORN_THREADS} --timeout ${GUNICORN_TIMEOUT} --bind ${GUNICORN_BIND} --limit-request-line ${GUNICORN_LIMIT_REQUEST_LINE} --limit-request-field_size ${GUNICORN_LIMIT_REQUEST_FIELD_SIZE}"
2018-07-28 00:45:54 +00:00
# Create superset user & install dependencies
2019-10-06 10:02:50 +00:00
RUN set -xe \
&& 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 \
2018-07-28 00:45:54 +00:00
build-essential \
curl \
freetds-bin \
2019-10-06 10:02:50 +00:00
freetds-dev \
libffi-dev \
libffi6 \
libldap-2.4-2 \
libldap2-dev \
libmariadb-dev \
2019-10-20 03:31:17 +00:00
libmariadb-dev-compat \
2019-10-06 10:02:50 +00:00
libmariadb3 \
libpq-dev \
libpq5 \
libsasl2-2 \
libsasl2-dev \
libssl-dev \
libssl1.1 \
python3 \
python3-dev \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python3 \
2019-10-20 03:31:17 +00:00
&& pip3 install --no-cache-dir \
apache-superset==${SUPERSET_VERSION} \
mysqlclient \
psycopg2-binary \
pyhive[hive,presto] \
2019-10-20 09:09:50 +00:00
redis \
2019-10-06 10:02:50 +00:00
&& apt-get remove -y \
build-essential \
freetds-dev \
2018-07-28 00:45:54 +00:00
libffi-dev \
libldap2-dev \
2019-10-06 10:02:50 +00:00
libmariadb-dev \
2018-07-28 00:45:54 +00:00
libpq-dev \
libsasl2-dev \
libssl-dev \
2019-10-06 10:02:50 +00:00
python3-dev \
&& apt-get clean \
2019-10-20 09:09:50 +00:00
&& rm -r /var/lib/apt/lists/*
2018-07-28 00:45:54 +00:00
# Configure Filesystem
COPY superset /usr/local/bin
VOLUME /home/superset \
/etc/superset \
/var/lib/superset
WORKDIR /home/superset
2020-09-15 05:00:51 +00:00
# Finalize application
2018-07-28 00:45:54 +00:00
EXPOSE 8088
HEALTHCHECK CMD ["curl", "-f", "http://localhost:8088/health"]
2019-01-11 10:00:39 +00:00
CMD ["gunicorn", "superset:app"]
2018-07-28 00:45:54 +00:00
USER superset