forked from 02bx/BlueLotus_XSSReceiver
-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request firesunCN#13 from n3uz/master
增加Docker部署方式
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM ubuntu:latest | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive \ | ||
apt-get -yq install \ | ||
curl \ | ||
git \ | ||
apache2 \ | ||
libapache2-mod-php7.0 \ | ||
php7.0-mcrypt \ | ||
php7.0 && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
RUN /usr/sbin/phpenmod mcrypt | ||
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && \ | ||
sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php/7.0/apache2/php.ini | ||
|
||
ENV ALLOW_OVERRIDE **False** | ||
|
||
ADD run.sh /run.sh | ||
|
||
RUN chmod 755 /*.sh | ||
|
||
RUN mkdir -p /app && rm -fr /var/www/html && ln -s /app /var/www/html | ||
|
||
RUN git clone https://github.com/firesunCN/BlueLotus_XSSReceiver.git /app/tmp/ && \ | ||
mv /app/tmp/* /app/ && \ | ||
rm -fr /app/tmp/ && \ | ||
mv /app/config-sample.php /app/config.php && \ | ||
pass=`php -r '$salt="!KTMdg#^^I6Z!deIVR#SgpAI6qTN7oVl";$key="bluelotus";$key=md5($salt.$key.$salt);$key=md5($salt.$key.$salt);$key=md5($salt.$key.$salt);echo $key;'`;sed -i "s/2a05218c7aa0a6dbd370985d984627b8/$pass/g" /app/config.php && \ | ||
rm -fr /app/diff && \ | ||
rm -fr /app/guide && \ | ||
rm -fr /app/src | ||
|
||
EXPOSE 80 | ||
|
||
WORKDIR /app | ||
|
||
CMD ["/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters