Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zyclonite authored Sep 20, 2023
1 parent 80e24c6 commit 2c87269
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
FROM python:3.9-slim

# Superset version
ARG SUPERSET_VERSION=3.0.0

LABEL maintainer "NoEnv"
LABEL version "${SUPERSET_VERSION}"
LABEL description "Superset Docker Image"

# Configure environment
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
PYTHONPATH=/etc/superset:/home/superset:$PYTHONPATH \
SUPERSET_VERSION=${SUPERSET_VERSION} \
SUPERSET_HOME=/var/lib/superset \
FLASK_APP=superset.app:create_app()

# Create superset user & install dependencies
RUN useradd -U -m superset && \
mkdir -p /etc/superset /tmp/requirements ${SUPERSET_HOME} && \
chown -R superset:superset /etc/superset ${SUPERSET_HOME} && \
Expand Down Expand Up @@ -62,12 +59,9 @@ RUN useradd -U -m superset && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* /tmp/google-chrome-stable_current.deb /tmp/chromedriver.zip

# Configure Filesystem
COPY superset /usr/local/bin
WORKDIR /home/superset

# Deploy application
EXPOSE 8088
HEALTHCHECK CMD ["curl", "-f", "http://localhost:8088/health"]
CMD ["superset-run"]
USER superset

0 comments on commit 2c87269

Please sign in to comment.