-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfileBack
More file actions
55 lines (54 loc) · 1.42 KB
/
Copy pathDockerfileBack
File metadata and controls
55 lines (54 loc) · 1.42 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
## PHPUnit Docker Container.
#FROM debian:stable-slim
#MAINTAINER Samark Chisanguan <samarkchnsgn@gmail.com>
#
## Run some Debian packages installation.
#ENV PACKAGES="php-pear curl"
#RUN apt-get update && \
# apt-get install -yq --no-install-recommends $PACKAGES
#
#
## Run php installation.
##RUN apt-get install php7
#
## Run xdebug installation.
#RUN mkdir -p /usr/src/php/ext/
#RUN curl -L http://pecl.php.net/get/xdebug-2.4.0.tgz >> /usr/src/php/ext/xdebug.tgz && \
# tar -xf /usr/src/php/ext/xdebug.tgz -C /usr/src/php/ext/
## rm /usr/src/php/ext/xdebug.tgz && \
## docker-php-ext-install xdebug-2.4.0 && \
## docker-php-ext-install pcntl && \
## docker-php-ext-install exif && \
## php -m
#
## Run apache installation.
#RUN apt-cache search apache
#RUN apt-get install -y apache2 apache2-bin apache2-data
#
### Goto temporary directory.
##WORKDIR /var/www/html
##
### Set up the application directory.
##VOLUME ["/var/www/html"]
##WORKDIR /var/www/html
#
#RUN which apachectl
#RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
# apachectl configtest
#
#RUN a2enmod rewrite && mkdir /bootstrap
#
#ADD start.sh /bootstrap/start.sh
#RUN chmod 755 /bootstrap/start.sh && chown -R www-data:www-data /var/www/html
#
## Expose port
#EXPOSE 80
#ENTRYPOINT ["/bootstrap/start.sh"]
#
#
#
#
## Set up the command arguments.
##ENTRYPOINT ["/usr/sbin/apachectl","start"]
##CMD ["--help"]
CMD ["apache2-foreground"]