From 235076e844748bd7b954d65497106734d9e9c88b Mon Sep 17 00:00:00 2001 From: John Lees-Miller Date: Sat, 27 Oct 2018 20:10:01 +0100 Subject: [PATCH] Fix node version issue in dev --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3b22569..599dec8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,11 @@ FROM ruby:2.5.0 +# Note: must install newer nodejs to work around +# https://github.com/docker-library/ruby/issues/226 RUN apt-get update -qq &&\ - apt-get install -y build-essential libpq-dev nodejs &&\ - useradd --user-group --create-home --shell /bin/false app + curl -sL https://deb.nodesource.com/setup_10.x | bash - &&\ + apt-get install -y build-essential libpq-dev nodejs &&\ + useradd --user-group --create-home --shell /bin/false app ENV HOME=/home/app USER app