diff --git a/Dockerfile b/Dockerfile
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,13 +2,15 @@
 # Docker image for Etherpad
 #
 
-FROM debian:jessie
+FROM debian:stretch
 
 # Forked from Tony Motakis <tvelocity@gmail.com>
 MAINTAINER Sébastien Santoro aka Dereckson <dereckson+nasqueron-docker@espace-win.org>
 
 RUN apt-get update && \
-    apt-get install -y curl unzip nodejs-legacy npm mysql-client git && \
+    apt-get install -y curl unzip mysql-client git sudo python libssl-dev pkg-config build-essential && \
+    curl -sL https://deb.nodesource.com/setup_9.x | bash && \
+    apt-get install -y nodejs && \
     rm -r /var/lib/apt/lists/*
 
 RUN cd /opt && \