-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.superset-oauth
44 lines (36 loc) · 1.2 KB
/
Dockerfile.superset-oauth
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
FROM apache/superset AS lean
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
FLASK_ENV=production \
FLASK_APP="superset.app:create_app()" \
PYTHONPATH="/app/pythonpath" \
SUPERSET_HOME="/app/superset_home" \
SUPERSET_PORT=8088
USER root
RUN mkdir -p ${SUPERSET_HOME} ${PYTHONPATH} \
&& apt-get update -y \
&& apt-get install -y --no-install-recommends \
build-essential \
default-libmysqlclient-dev \
libsasl2-modules-gssapi-mit \
libpq-dev \
nano \
&& rm -rf /var/lib/apt/lists/* \
&& pip install --no-cache \
"psycopg2==2.8.5" \
"redis==3.2.1" \
thrift_sasl \
impyla \
sasl \
thrift \
mysqlclient \
snowflake-sqlalchemy \
Authlib \
&& pip install --no-cache --force-reinstall --no-deps \
'git+https://github.com/packet23/thrift_sasl.git@thriftpy2-readall' \
'git+https://github.com/danielewood/impyla.git@fix-table-descriptions-superset'
WORKDIR /app
USER superset
HEALTHCHECK CMD curl -f "http://localhost:$SUPERSET_PORT/health"
EXPOSE ${SUPERSET_PORT}
ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]