1
0
mirror of https://github.com/alrayyes/hugo-node-ruby-docker synced 2023-11-14 15:56:28 +00:00

use golang docker as base

This commit is contained in:
Ryan 2015-10-20 17:57:23 +02:00
parent 1b8ac1e1bd
commit 198dd6c35e
2 changed files with 7 additions and 6 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
.git
*.md

View File

@ -1,7 +1,6 @@
FROM ubuntu:14.04
FROM golang
MAINTAINER Ryan Kes <ryan@andthensome.nl>
RUN curl -sL https://deb.nodesource.com/setup | sudo bash -
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y golang git wget nodejs npm git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
RUN wget https://github.com/spf13/hugo/releases/download/v0.14/hugo_0.14_amd64.deb && dpkg -i hugo_0.14_amd64.deb && rm hugo_0.14_amd64.deb
RUN cd && git clone git://github.com/sstephenson/rbenv.git .rbenv && echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile && echo 'eval "$(rbenv init -)"' >> ~/.bash_profile && git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build && echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile && . ~/.bash_profile && rbenv install -v 2.2.3 && rbenv global 2.2.3 && echo "gem: --no-document" > ~/.gemrc && gem install bundler
RUN wget https://github.com/spf13/hugo/releases/download/v0.14/hugo_0.14_amd64.deb \
&& dpkg -i hugo_0.14_amd64.deb \
&& rm hugo_0.14_amd64.deb \
&& rm -rf /var/lib/apt/lists/* \