This commit is contained in:
gangwen.lv 2023-05-16 11:41:34 +08:00
parent 1f9a638105
commit c0aa3b8c57
3 changed files with 32 additions and 0 deletions

View File

@ -2,3 +2,7 @@
./build
./Jenkinsfile
./Makefile
./.gitignore
./Dockerfile
./docker

18
Dockerfile Normal file
View 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"]

View 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>