forked from crobox/docker-superset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (45 loc) · 1.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM amancevice/pandas:0.20.3-python3
# Superset version
ARG SUPERSET_VERSION=0.18.5
# Configure environment
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
PYTHONPATH=/etc/superset:$PYTHONPATH \
SUPERSET_VERSION=${SUPERSET_VERSION}
# Configure Filesysten
COPY superset /usr/local/bin
VOLUME /etc/superset
WORKDIR /home/superset
# Install dependencies & create superset user
RUN apt-get update && \
apt-get install -y \
build-essential \
libsasl2-dev \
libldap2-dev \
mariadb-client \
postgresql-client && \
pip install \
flask-mail==0.9.1 \
flask-oauth==0.12 \
flask_oauthlib==0.9.3 \
impyla==0.14.0 \
mysqlclient==1.3.7 \
psycopg2==2.6.1 \
pyhive==0.2.1 \
pyldap==2.4.28 \
redis==2.10.5 \
sqlalchemy-redshift==0.5.0 \
sqlalchemy-clickhouse==0.1.2.post3 \
superset==$SUPERSET_VERSION \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -U superset && \
mkdir /home/superset/.superset && \
touch /home/superset/.superset/superset.db && \
chown root:staff /usr/local/bin/superset* && \
chown -R superset:superset /home/superset
# Deploy application
EXPOSE 8088
HEALTHCHECK CMD ["curl", "-f", "http://localhost:8088/health"]
ENTRYPOINT ["superset"]
CMD ["runserver"]
USER superset