tonne commited on
Commit
17e80e7
1 Parent(s): e7c268d

Add superset

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -16,7 +16,7 @@
16
  # CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "."]
17
  # FROM toandaominh1997/locust:latest
18
 
19
- FROM --platform=linux/amd64 apache/superset:latest as build
20
 
21
  # RUN superset fab create-admin \
22
  # --username admin \
@@ -24,8 +24,10 @@ FROM --platform=linux/amd64 apache/superset:latest as build
24
  # --lastname Admin \
25
  # --email admin@superset.com \
26
  # --password admin
27
- RUN superset db upgrade
 
 
 
 
28
  RUN superset load_examples
29
- ENV SUPERSET_SECRET_KEY=tonne1997
30
- ENV SUPERSET_WEBSERVER_PORT 7860
31
- ENV SUPERSET_PORT 7860
 
16
  # CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "."]
17
  # FROM toandaominh1997/locust:latest
18
 
19
+ FROM --platform=linux/amd64 ubuntu:latest as build
20
 
21
  # RUN superset fab create-admin \
22
  # --username admin \
 
24
  # --lastname Admin \
25
  # --email admin@superset.com \
26
  # --password admin
27
+ RUN apt-get update && apt-get install -y build-essential libssl-dev libffi-dev python3-dev python3-pip libsasl2-dev libldap2-dev default-libmysqlclient-dev
28
+ RUN pip install apache-superset
29
+ RUN export FLASK_APP=superset
30
+ RUN superset fab create-admin
31
+
32
  RUN superset load_examples
33
+ CMD ["superset", "run", "-p", "7860"]