-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
37 lines (28 loc) · 1.13 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
FROM node:6.10.3
ENV NGINX_VERSION 1.13.0-1~jessie
ENV NJS_VERSION 1.13.0.0.1.10-1~jessie
RUN wget http://nginx.org/keys/nginx_signing.key \
&& apt-key add nginx_signing.key \
&& echo "deb http://nginx.org/packages/mainline/debian/ jessie nginx" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y \
nginx=${NGINX_VERSION} \
nginx-module-xslt=${NGINX_VERSION} \
nginx-module-geoip=${NGINX_VERSION} \
nginx-module-image-filter=${NGINX_VERSION} \
nginx-module-njs=${NJS_VERSION} \
gettext-base \
&& rm -rf /var/lib/apt/lists/*
# Forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
STOPSIGNAL SIGQUIT
WORKDIR /proxy-server
COPY ./package.json .
RUN npm install && npm install gulp -g
COPY . .
RUN gulp build \
&& cp -r site/* /usr/share/nginx/html \
&& gulp clean
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]