-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (39 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
51 lines (39 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# "web" Dockerfile: compiles the latest version of Plotter
FROM ubuntu:16.04
MAINTAINER Jussi Ekholm "jussi@sedaris.fi"
# install packages:
RUN apt-get update && apt-get install -y \
git \
wget \
curl \
nginx \
subversion \
python-pip \
sudo
# install node
RUN curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
RUN apt-get install -y nodejs
# clean up
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN npm -g install grunt-cli karma bower
ADD . /plotter
WORKDIR /plotter
RUN rm -rf node_modules/
# Start installing
RUN npm install
RUN bower --config.interactive=false install --allow-root
ADD web-docker/karma-unit.tpl.js karma/karma-unit.tpl.js
# Switch to "grunt" to have the minified version (takes a lot longer)
RUN grunt build
# Add Nginx configuration
#ADD ./.htpasswd /etc/nginx/.htpasswd
ADD python-api/http-docker/nginx.conf /etc/nginx/nginx.conf
RUN chown -R www-data:www-data /var/lib/nginx
RUN chown -R www-data:www-data /plotter
# compile the documentation
RUN pip install mkdocs
RUN pip install mkdocs-material
WORKDIR /plotter/docs/project
RUN mkdocs build
EXPOSE 80 443