Skip to content

Commit

Permalink
Debian stretch (fixes #2811) (#2865)
Browse files Browse the repository at this point in the history
* Switch base operating system image to Debian 9 (Stretch).

* Change dependency names

* Omit npm dependency for now

* Install NPM just like https://github.com/Starefossen/docker-ruby-node/

* Add gpg key and define node version

* Simplify use Stretch backports

* Use backported nodejs.

* Confirm apt installation

* Install by setup script from nodejs.org

* Install nodejs package

* Don't use sudo
  • Loading branch information
icarito authored and jywarren committed Jun 21, 2018
1 parent 950539c commit 8bea75f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Dockerfile # Plots2
# https://github.com/publiclab/plots2

FROM ruby:2.4.1-jessie
FROM ruby:2.4.1-stretch

LABEL maintainer="Sebastian Silva <sebastian@fuentelibre.org>"
LABEL description="This image deploys Plots2."

# Set correct environment variables.
Expand All @@ -18,7 +17,8 @@ ENV PHANTOMJS_VERSION 2.1.1
# > /etc/apt/sources.list

# Install dependencies
RUN apt-get update -qq && apt-get install -y bundler libmysqlclient-dev ruby-rmagick libfreeimage3 nodejs-legacy npm wget procps cron make
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get update -qq && apt-get install -y build-essential bundler libmariadbclient-dev ruby-rmagick libfreeimage3 wget curl procps cron make nodejs
RUN wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; tar -xvf /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C /opt ; cp /opt/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin/* /usr/local/bin/
RUN npm install -g bower

Expand Down

0 comments on commit 8bea75f

Please sign in to comment.