ilsaloving commented on issue #30550:
URL: https://github.com/apache/superset/issues/30550#issuecomment-2400115760
Since the base image is running off Debian 12, I was able to make the
following adjustments to my Dockerfile so everything would work without
requiring a full compilation environment. I'm still fiddling with it, but this
works.
Note: I also had to install the distro packages for `ldap` and `psycopg2` as
well, and _then_ install `psycopg2-binary` via pip or superset wouldn't find it.
```
FROM apache/superset:4.1.0rc2
USER root
RUN <<EOF
apt-get update
apt-get upgrade -y
apt-get install -y curl links zip unzip basez python3-mysqldb
python3-ldap python3-psycopg2 python3-psycopg2cffi
apt-get purge -y --auto-remove
EOF
COPY superset_config.py superset-init.sh /app/
RUN <<EOF
pip --root-user-action install --upgrade pip
pip install \
psycopg2-binary \
shillelagh[gsheetsapi] \
gunicorn[gevent] \
pymssql \
elasticsearch-dbapi \
elasticsearch-dbapi[opendistro] \
trino \
trino[sqlalchemy] \
playwright \
pip-system-certs \
Pillow \
EOF
USER superset
```
--
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]