|
|
|
FROM alpine
|
|
|
|
RUN mkdir -p /var/www/machete && \
|
|
|
|
mkdir -p /var/www/downloads && \
|
|
|
|
apk add gcc g++ make cmake pkgconf libxml2-dev sqlite-dev && \
|
|
|
|
cd /var/www/downloads && \
|
|
|
|
wget "https://nginx.org/download/nginx-1.21.6.tar.gz" && \
|
|
|
|
wget "https://www.php.net/distributions/php-8.1.6.tar.gz" && \
|
|
|
|
tar -zxvf nginx-1.21.6.tar.gz && \
|
|
|
|
tar -zxvf php-8.1.6.tar.gz && \
|
|
|
|
cd nginx-1.21.6/ && \
|
|
|
|
./configure --without-http_rewrite_module --without-http_gzip_module && \
|
|
|
|
make && make install && \
|
|
|
|
cd ../php-8.1.6/ && \
|
|
|
|
./configure --enable-fpm && make && make install && \
|
|
|
|
cd ../ && wget "https://git.filesite.io/filesite/machete/archive/master.tar.gz" && \
|
|
|
|
tar -zxvf master.tar.gz && \
|
|
|
|
mv machete/* /var/www/machete/ && \
|
|
|
|
cd /var/www/ && rm -rf downloads/ && \
|
|
|
|
cd /var/www/machete/ && \
|
|
|
|
mkdir -p /usr/local/nginx/conf/conf.d && \
|
|
|
|
rm -f /usr/local/nginx/conf/nginx.conf && \
|
|
|
|
cp conf/nginx_default.conf /usr/local/nginx/conf/nginx.conf && \
|
|
|
|
cp conf/nginx_machete.conf /usr/local/nginx/conf/conf.d/machete.conf
|
|
|
|
|
|
|
|
EXPOSE 80/tcp
|
|
|
|
ENTRYPOINT ["/var/www/machete/docker-entrypoint.sh"]
|
|
|
|
## 默认使用导航站皮肤:webdirectory
|
|
|
|
CMD ["webdirectory"]
|