FROM apache/superset:4.0.2

# hadolint ignore=DL3002
USER root

COPY --chown=superset superset_config.py /app/
COPY --chown=superset catalyst_logo.png /app/superset/static/assets/images/

ENV SUPERSET_CONFIG_PATH /app/superset_config.py

# add to requirements file
COPY --chown=superset requirements.txt /app/
RUN pip install --no-cache-dir -r /app/requirements.txt && \
    rm /app/requirements.txt
# Switching back to using the `superset` user
USER superset
