ilsaloving commented on issue #30553:
URL: https://github.com/apache/superset/issues/30553#issuecomment-2489084637
I was successful by installing build-essential, and then autoremoving it
after it was done, to avoid ballooning the layer with unnecessary stuff.
Here is my working Dockerfile. I'm using a custom init command for some
additional stuff but you can ignore that.
```
FROM apache/superset:4.1.1rc1-py311
USER root
COPY superset_config.py superset-init.sh superset-init-env.sh /app/
COPY --from=common get-secret.sh discover-roleid.sh /usr/local/bin/
RUN <<EOF
apt-get update
apt-get install -y curl links zip unzip basez
#apt-get purge -y --auto-remove
EOF
ENV PIP_ROOT_USER_ACTION=ignore
RUN <<EOF
apt-get install -y build-essential
pip install --upgrade pip
pip install --upgrade --upgrade setuptools
pip install \
shillelagh[gsheetsapi] \
gunicorn[gevent] \
pymssql \
elasticsearch-dbapi \
elasticsearch-dbapi[opendistro] \
trino[sqlalchemy] \
pip-system-certs \
playwright \
Flask-Limiter[redis] \
Pillow \
psycopg2 \
python-ldap \
#mysqlclient \ #gives an error for some reason
apt-get autoremove -y build-essential
EOF
USER superset
CMD [ "/app/superset-init.sh" ]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]