-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathDockerfile
40 lines (26 loc) · 1011 Bytes
/
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
##############################################################
##
##
## Taiga-front
##
##
###############################################################
FROM debian:wheezy
MAINTAINER Clayton Santos da Silva "[email protected]"
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
RUN echo "deb http://nginx.org/packages/mainline/debian/ wheezy nginx" >> /etc/apt/sources.list
ENV NGINX_VERSION 1.7.6-1~wheezy
RUN apt-get update && apt-get install -y nginx=${NGINX_VERSION}
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log
RUN ln -sf /dev/stderr /var/log/nginx/error.log
VOLUME ["/usr/share/nginx/html"]
VOLUME ["/etc/nginx"]
VOLUME ["/var/log/nginx"]
RUN echo "alias ll='ls -atrhlF'" >> ~/.bashrc
COPY dist /usr/local/nginx/html
COPY taiga.conf /etc/nginx/sites-enabled/default
WORKDIR /usr/local/nginx/html
ENV PATH /usr/local/nginx/sbin:$PATH
EXPOSE 80 8000
CMD ["nginx", "-g", "daemon off;"]