From 0a5ac2a0183b009384a256f834134fecd2217a15 Mon Sep 17 00:00:00 2001 From: Holger Pandel Date: Sun, 9 Feb 2020 21:13:22 +0100 Subject: [PATCH] Get nodejs from source --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b8e422f..61b2979 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,13 @@ RUN apt-get update \ && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \ && echo "deb [ trusted=yes ] http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \ && apt-get update \ - && apt-get install -y apt-transport-https ca-certificates \ - && apt-get install -y --no-install-recommends --allow-unauthenticated \ + && apt-get install -y apt-transport-https ca-certificates + +RUN apt-get install -y curl \ + && wget --quiet -O - https://deb.nodesource.com/setup_10.x | bash - \ + && apt-get install -y nodejs + +RUN apt-get install -y --no-install-recommends --allow-unauthenticated \ apache2 \ apache2-dev \ autoconf \ @@ -54,8 +59,7 @@ RUN apt-get update \ lua5.3 \ make \ mapnik-utils \ - nodejs \ - npm \ + node-gyp \ osmium-tool \ osmosis \ postgis \