Files
rancher-docs/Dockerfile.build
Vincent Fiduccia 2871f45954 Packaging
2018-04-20 16:43:03 -07:00

26 lines
887 B
Docker

FROM debian:jessie
RUN apt-get -qq update \
&& apt-get install -y curl apt-transport-https \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& DEBIAN_FRONTEND=noninteractive apt-get -qq install -y --no-install-recommends \
python-pygments git ca-certificates asciidoc nodejs yarn jq \
&& rm -rf /var/lib/apt/lists/*
# Download and install hugo
ENV HUGO_VERSION 0.38.2
ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.deb
ADD https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} /tmp/hugo.deb
RUN dpkg -i /tmp/hugo.deb \
&& rm /tmp/hugo.deb
# Create working directory
RUN mkdir -p /run
COPY package.json /run/
WORKDIR /run
RUN npm install -g gulp && yarn