-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 771 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 771 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
30
31
32
33
FROM ubuntu:16.04
MAINTAINER Willie Seabrook<willie@angrycactus.io>
# No tty
ENV DEBIAN_FRONTEND noninteractive
# Basic Requirements
RUN apt-get update && apt-get -y install \
nano \
php-fpm php-xml php-curl php-mbstring php-bcmath \
nginx \
supervisor
# Nginx
COPY ./config/nginx/default.conf /etc/nginx/sites-available/default
# Supervisor
RUN mkdir -p /run/php/
COPY config/supervisord/supervisord.conf /etc/supervisor/supervisord.conf
COPY config/supervisord/conf.d/ /etc/supervisor/conf.d/
# PHP
COPY config/php/fpm/php.ini /etc/php/7.0/fpm/php.ini
COPY config/php/fpm/pool.d/www.conf /etc/php/7.0/fpm/pool.d/www.conf
COPY ./scripts/start.sh /start.sh
RUN chmod 755 /start.sh
EXPOSE 80
VOLUME ["/usr/share/nginx/www"]
CMD ["/bin/bash", "/start.sh"]