-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (28 loc) · 1.04 KB
/
Dockerfile
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
FROM ubuntu:14.04
MAINTAINER <[email protected]>
ENV DEFAULT_USER root
ENV DEFAULT_PASSWORD root
RUN apt-get update -y -q
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates \
software-properties-common \
unzip \
wget \
git
RUN add-apt-repository -y ppa:nginx/stable
RUN apt-get update -y -q
RUN apt-get install -y --no-install-recommends nginx
RUN wget https://github.com/joewalnes/websocketd/releases/download/v0.2.10/websocketd-0.2.10-linux_amd64.zip && \
unzip websocketd-0.2.10-linux_amd64.zip -d . && \
mv websocketd /usr/local/bin && \
rm -f websocketd-0.2.10-linux_amd64.zip
RUN git clone https://github.com/joewalnes/web-vmstats.git /usr/local/web-vmstats
RUN rm -f /etc/nginx/sites-enabled/* /etc/nginx/sites-available/*
RUN mkdir -vp /var/log/nginx && chown www-data /var/log/nginx
ADD nginx.conf /etc/nginx/
ADD start.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/start.sh
WORKDIR /usr/local/web-vmstats
CMD ["/usr/local/bin/start.sh"]
EXPOSE 80
EXPOSE 8010