Commit fff4f2e2 authored by Jørn de Jong's avatar Jørn de Jong

Update Dockerfile to match Sigma2 better

parent be5715ef
Pipeline #3136 passed with stages
in 6 minutes and 31 seconds
[submodule "wifiprobe-docs"]
path = wifiprobe-docs
path = gitbook
url = https://github.com/UNINETT/wifiprobe-docs.git
FROM centos:7
RUN yum install epel-release -y
RUN yum install -y epel-release
RUN yum update -y
RUN yum install lighttpd npm -y
RUN npm install gitbook-cli -g
COPY wifiprobe-docs /var/www/wifiprobe-docs
WORKDIR /var/www/wifiprobe-docs
RUN yum install -y lighttpd npm
RUN npm install --global gitbook-cli
ENV GITBOOK_VERSION="3.2.2"
RUN gitbook fetch ${GITBOOK_VERSION}
COPY gitbook /var/www/gitbook
WORKDIR /var/www/gitbook
RUN gitbook build
COPY lighttpd.conf /var/www/wifiprobe-docs.lighttpd.conf
ENTRYPOINT ["/usr/sbin/lighttpd", "-D", "-f", "/var/www/wifiprobe-docs.lighttpd.conf"]
COPY lighttpd.conf /var/www/gitbook.lighttpd.conf
ENTRYPOINT ["/usr/sbin/lighttpd", "-D", "-f", "/var/www/gitbook.lighttpd.conf"]
File moved
server.document-root = "/var/www/wifiprobe-docs/_book"
server.document-root = "/var/www/gitbook/_book"
server.port = 80
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment