Skip to content

Commit

Permalink
Merge pull request #4644 from kobotoolbox/use-nodesource-deb-package
Browse files Browse the repository at this point in the history
Replace `curl | bash` with nodesource Debian package
  • Loading branch information
jnm committed Sep 19, 2023
2 parents 913fc11 + 128beaa commit c472767
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ RUN mkdir -p "${NGINX_STATIC_DIR}" && \
# jnm (or the current on-call sysadmin). Thanks.

RUN apt-get -qq update && \
apt-get -qq -y install curl && \
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get -qq -y install ca-certificates curl gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
| gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" \
| tee /etc/apt/sources.list.d/nodesource.list && \
apt-get -qq update && \
apt-get -qq -y install --no-install-recommends \
ffmpeg \
gdal-bin \
Expand All @@ -67,7 +72,7 @@ RUN apt-get -qq update && \
less \
libproj-dev \
locales \
nodejs=$(apt-cache show nodejs | grep 'Version: .*nodesource' | cut -f 2 -d ' ') \
nodejs=$(apt-cache show nodejs | grep -F 'Version: 16.15.0' | cut -f 2 -d ' ') \
postgresql-client \
procps \
rsync \
Expand Down

0 comments on commit c472767

Please sign in to comment.