forked from praekeltfoundation/docker-junebug
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 934 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 934 Bytes
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
FROM praekeltfoundation/vumi
MAINTAINER Praekelt Foundation <dev@praekeltfoundation.org>
# Install a modern Nginx
ENV NGINX_VERSION 1.10.1-1~jessie
RUN apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 \
&& echo 'deb http://nginx.org/packages/debian/ jessie nginx' > /etc/apt/sources.list.d/nginx.list \
&& apt-get-install.sh nginx=${NGINX_VERSION}
# Forward Nginx access and error logs to stdout/err
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
# Install libjpeg for yowsup
RUN apt-get-install.sh libjpeg62
COPY requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
COPY junebug-entrypoint.sh nginx/nginx-config-gen.sh \
/scripts/
COPY nginx/vhost.template /config/
RUN rm /etc/nginx/conf.d/default.conf \
&& mkdir -p /etc/nginx/includes/junebug
EXPOSE 80
CMD ["junebug-entrypoint.sh"]