docker
This commit is contained in:
parent
1f9a638105
commit
c0aa3b8c57
@ -2,3 +2,7 @@
|
||||
./build
|
||||
./Jenkinsfile
|
||||
./Makefile
|
||||
./.gitignore
|
||||
./Dockerfile
|
||||
./docker
|
||||
|
||||
|
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM alpine:3.12
|
||||
|
||||
RUN apk update && apk upgrade && apk add tzdata apache2 \
|
||||
php7 php7-apache2 php7-ctype \
|
||||
php7-pdo php7-pdo_mysql php7-json \
|
||||
php7-session php7-opcache \
|
||||
php7-iconv php7-gd php7-openssl \
|
||||
php7-curl php7-mbstring
|
||||
|
||||
ADD . /var/www/localhost/htdocs/
|
||||
|
||||
WORKDIR /var/www/localhost/htdocs
|
||||
|
||||
ENV TIMEZONE=Asia/Shanghai
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["/usr/sbin/httpd" "-D" "FOREGROUND"]
|
10
docker/etc/apache2/sites-enabled/apache.conf
Normal file
10
docker/etc/apache2/sites-enabled/apache.conf
Normal file
@ -0,0 +1,10 @@
|
||||
<VirtualHost *:80>
|
||||
DocumentRoot /var/www/localhost/htdocs/www/
|
||||
<Directory />
|
||||
Options FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
ErrorLog /var/log/apache2/error_log
|
||||
CustomLog /var/log/apache2/access_log combined
|
||||
</VirtualHost>
|
Loading…
x
Reference in New Issue
Block a user