Dockerfile 1.04 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
FROM ubuntu:16.04

LABEL Description="KDE Static website generation image"
MAINTAINER Bhushan Shah

USER root

RUN apt-get update && apt-get install --yes \
ruby \
ruby-dev \
build-essential \
Bhushan Shah's avatar
Bhushan Shah committed
12
libsqlite3-dev \
13
git \
14
python3-pip \
15
wget
16

17
RUN wget https://github.com/gohugoio/hugo/releases/download/v0.41/hugo_0.41_Linux-64bit.deb && \
18
	dpkg -i hugo_0.41_Linux-64bit.deb && rm hugo_0.41_Linux-64bit.deb
19

20
RUN gem update --system && gem install jekyll jekyll-feed jekyll-planet jekyll-theme-minimal jekyll-readme-index jekyll-relative-links jekyll-environment-variables pluto bundler haml redcarpet minima rdiscount inqlude addressable
21
RUN pip3 install sphinx-intl sphinx_rtd_theme sphinxcontrib-doxylink
22 23 24

RUN apt-get -qq update && apt-get install -qq \
    openssh-server \
25
    openjdk-8-jre-headless \
26 27 28 29 30 31 32
    && dpkg-reconfigure openssh-server && mkdir -p /var/run/sshd && apt-get -qq clean

# Setup a user account for everything else to be done under
RUN useradd -d /home/user/ -u 1000 --user-group --create-home -G video user

EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]