-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·36 lines (29 loc) · 981 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
FROM ubuntu:16.04
MAINTAINER zhaochenxiaohtc@gmail.com
RUN mkdir -p /var/www/laravel5.5-direct-development; \
mkdir /etc/nginx/ssl/; \
apt-get update && apt-get install -y \
nginx \
php7.0 \
php7.0-fpm \
php7.0-dev \
php7.0-mysql \
php-curl \
net-tools \
vim
RUN apt-get install -y \
python-software-properties \
language-pack-en-base \
software-properties-common; \
LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php ; \
apt-get update && apt-get install -y \
php7.0-mongodb \
cron \
git
ADD nginx_conf/nginx-site.conf /etc/nginx/sites-enabled/default
ADD nginx_conf/nginx-site-https.conf /etc/nginx/sites-enabled/ssl.conf
ADD nginx_conf/star_* /etc/nginx/ssl/
ADD ./ /var/www/laravel5.5-direct-development/
RUN chmod -R 777 /var/www/laravel5.5-direct-development;
ENTRYPOINT /var/www/laravel5.5-direct-development/start.sh && tail -f /var/log/nginx/laravel5.5-direct-development_error_log
EXPOSE 80