From 1074d1e6183f3216a68415bd439910c4801bd2ef Mon Sep 17 00:00:00 2001 From: Joe Li Date: Mon, 19 Aug 2024 09:26:57 -0700 Subject: [PATCH] chore: Update to Dockerfile to get creating releases to work (#29937) (cherry picked from commit 955db48c59f80ca673585973db52a52cc215301f) --- RELEASING/Dockerfile.from_local_tarball | 7 +++++-- RELEASING/Dockerfile.make_tarball | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/RELEASING/Dockerfile.from_local_tarball b/RELEASING/Dockerfile.from_local_tarball index 8f5605b25d646..0a2613c182889 100644 --- a/RELEASING/Dockerfile.from_local_tarball +++ b/RELEASING/Dockerfile.from_local_tarball @@ -34,8 +34,11 @@ RUN apt-get install -y build-essential libssl-dev \ # Install nodejs for custom build # https://nodejs.org/en/download/package-manager/ -RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - \ - && apt-get install -y nodejs +RUN set -eux; \ + curl -sL https://deb.nodesource.com/setup_18.x | bash -; \ + apt-get install -y nodejs; \ + node --version; +RUN if ! which npm; then apt-get install -y npm; fi RUN mkdir -p /home/superset RUN chown superset /home/superset diff --git a/RELEASING/Dockerfile.make_tarball b/RELEASING/Dockerfile.make_tarball index 3a963723de093..4e701afd172f0 100644 --- a/RELEASING/Dockerfile.make_tarball +++ b/RELEASING/Dockerfile.make_tarball @@ -17,7 +17,9 @@ FROM python:3.10-slim-bookworm RUN apt-get update -y -RUN apt-get install -y jq +RUN apt-get install -y \ + git \ + jq COPY make_tarball_entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]