-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
34 lines (29 loc) · 931 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
FROM ubuntu:xenial
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl \
git \
nginx \
php7.0 \
php7.0-bcmath \
php7.0-cli \
php7.0-curl \
php7.0-dom \
php7.0-fpm \
php7.0-mbstring \
php7.0-mysqlnd \
&& apt-get clean && rm -r /var/lib/apt/lists/*
COPY ["composer.json", "/www/"]
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/www/ \
&& cd /www/ \
&& php composer.phar install \
&& echo "daemon off;" >> /etc/nginx/nginx.conf
COPY ["app", "/www/app"]
COPY ["web", "/www/web"]
COPY ["vhs", "/www/vhs"]
COPY ["migrations", "/www/migrations"]
COPY ["tools", "/www/tools"]
COPY ["conf/nginx-vhost-docker.conf", "/etc/nginx/sites-enabled/default"]
COPY ["docker", "/usr/bin"]
COPY ["conf/config.docker.ini.php", "/www/conf/config.ini.php"]
CMD ["/usr/bin/docker_run.sh"]