Skip to content

Commit dc14921

Browse files
committed
Add other way to install Hugo on the image
1 parent 85f3ba6 commit dc14921

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@ FROM deis/go-dev
33
RUN apt-get update
44

55
# Ruby
6-
RUN apt-get install hugo ruby ruby-dev ruby-bundler curl apt-utils -y
6+
RUN apt-get install ruby ruby-dev ruby-bundler curl apt-utils -y
77
RUN gem install sass --no-user-install
88
RUN gem install mime-types:2.0 rake cucumber capybara selenium-webdriver rspec browserstack-local parallel_tests
99

10+
#Hugo - October 2017 build
11+
ENV HUGO_VERSION=0.30.2
12+
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz /tmp
13+
RUN tar -xf /tmp/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz -C /tmp \
14+
&& mkdir -p /usr/local/sbin \
15+
&& mv /tmp/hugo /usr/local/sbin/hugo \
16+
&& rm -rf /tmp/hugo_${HUGO_VERSION}_linux_amd64
17+
1018
# Node.JS
1119
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash
1220
RUN apt-get install nodejs -y

0 commit comments

Comments
 (0)