Skip to content

Instantly share code, notes, and snippets.

@ecliptik
Created March 21, 2017 23:03
Show Gist options
  • Save ecliptik/392836f7159531aa922b754481dbfff4 to your computer and use it in GitHub Desktop.
Save ecliptik/392836f7159531aa922b754481dbfff4 to your computer and use it in GitHub Desktop.
superset-dockerfile
FROM python:3.6
#Set environment vars
ENV LANG=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
LANGUAGE=en_US.UTF-8 \
DEBIAN_FRONTEND=noninteractive \
SUPERSET_VERSION=0.17.1
# Install
RUN set -ex && \
runDeps=' \
libsasl2-dev \
ca-certificates \
build-essential \
libssl-dev \
libffi-dev \
libldap2-dev \
' && \
apt-get update && \
apt-get install -y --no-install-recommends $runDeps && \
rm -fr /var/lib/apt/lists/*
RUN pip install --upgrade setuptools pip
RUN pip install superset==$SUPERSET_VERSION \
psycopg2==2.6.1 \
redis==2.10.5 \
ldap3==2.1.1 \
sqlalchemy-redshift==0.5.0
COPY superset_config.py /usr/local/lib/python3.6/
# Run
EXPOSE 8088
ENTRYPOINT ["superset"]
CMD ["runserver"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment