forked from amancevice/docker-superset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (33 loc) · 899 Bytes
/
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
FROM amancevice/pandas:0.18.1-python3
# Install
ENV SUPERSET_VERSION 0.17.0
RUN apk add --no-cache \
curl \
libffi-dev \
cyrus-sasl-dev \
mariadb-dev \
postgresql-dev && \
pip3 install \
superset==$SUPERSET_VERSION \
mysqlclient==1.3.7 \
ldap3==2.1.1 \
psycopg2==2.6.1 \
redis==2.10.5 \
sqlalchemy-redshift==0.5.0
# Default config
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
PATH=$PATH:/home/superset/.bin \
PYTHONPATH=/home/superset/superset_config.py:$PYTHONPATH
# Run as superset user
WORKDIR /home/superset
COPY superset .
RUN addgroup superset && \
adduser -h /home/superset -G superset -D superset && \
chown -R superset:superset /home/superset
USER superset
# Deploy
EXPOSE 8088
HEALTHCHECK CMD ["curl", "-f", "http://localhost:8088/health"]
ENTRYPOINT ["superset"]
CMD ["runserver"]