-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
38 lines (27 loc) · 1.16 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
# Docker Ultimate - a Docker image for developing modern web apps, running under Supervisord
#
# VERSION 0.0.1
FROM ubuntu:precise
MAINTAINER Maurice Faber "[email protected]"
# Set the env variable DEBIAN_FRONTEND to noninteractive
ENV DEBIAN_FRONTEND noninteractive
# install certificates
ADD server.crt /etc/nginx/certificates/
ADD server.key /etc/nginx/certificates/
# install Supervisord conf
ADD supervisord.conf /etc/supervisord.conf
# apt-get upgrade fix from https://github.com/dotcloud/docker/issues/1724
RUN dpkg-divert --local --rename /usr/bin/ischroot && ln -sf /bin/true /usr/bin/ischroot
# RUN as much as possible from file to circumvent aufs 42 layer limit (now 127)
ADD run.sh /tmp/run.sh
RUN /bin/bash /tmp/run.sh && rm /tmp/run.sh
# install nginx files
ADD nginx_default.conf /etc/nginx/sites-available/default
ADD websocket.conf /etc/nginx/sites-available/websocket.conf
# add redis files
ADD redis.conf /etc/redis/redis.conf
# Add phpMyAdmin install script
ADD install_phpmyadmin.sh /root/install_phpmyadmin.sh
# expose ports - 3000 is default node.js app port
EXPOSE 22 80 443 3306 6379 3000
CMD supervisord -n -c /etc/supervisord.conf