-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPercona-server.Dockerfile
35 lines (26 loc) · 1.03 KB
/
Percona-server.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
FROM debian:stretch
MAINTAINER PeGa! <dev@pega.sh>
# - Main / Contrib / Non-free repositories
# - stretch-backports enabled
# - (Disabled) Docker repositories
ADD build/config/repos/apt/* /etc/apt/
# Adds external scripts for setup and configuration:
#
# - install-percona-server-repositories.sh
# - base-setup.sh
# - install-web-services-dependencies.sh
# - setup-laravel-env.sh
ADD build/scripts/* /tmp/
RUN /tmp/base-setup.sh && \
/tmp/install-web-services-dependencies.sh && \
# /tmp/install-phpmyadmin.sh
# Adding custom configurations to Nginx and PHP
ADD build/config/services/nginx-block.conf /etc/nginx/sites-available/default
ADD build/config/services/php-pool-www.conf /etc/php/7.0/fpm/pool.d/www.conf
# Establishing working dir to app directory
WORKDIR /var/www/html
# When the image becomes container, it will run by default the line below upon
# "docker run" invocation.
CMD /etc/init.d/nginx start && \
/etc/init.d/mysql start && \
/usr/sbin/php-fpm7.0 --fpm-config /etc/php/7.0/fpm/php-fpm.conf -g /run/php/php7.0-fpm.pid -F