Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ FROM python:3.10-bookworm
ARG PRODUCTION=true
ARG EXTRA_PIP_INSTALLS=""
ARG NODESOURCE_BASE=https://deb.nodesource.com
ARG DEBIAN_MIRROR

## Install Querybook package requirements + NodeJS
# Installing build-essential and python-dev for uwsgi
RUN mkdir -p /etc/apt/keyrings && curl -fsSL "${NODESOURCE_BASE%/}/gpgkey/nodesource-repo.gpg.key" | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] ${NODESOURCE_BASE%/}/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& rm -rf /var/lib/apt/lists/* \
&& if [ -n "$DEBIAN_MIRROR" ]; then \
sed -i "s#http://deb.debian.org#${DEBIAN_MIRROR%/}#g" \
/etc/apt/sources.list.d/debian.sources; \
fi \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y --allow-downgrades --allow-remove-essential --allow-change-held-packages \
libsasl2-dev \
Expand Down
Loading