Skip to content

Commit

Permalink
改为在拉取后安装
Browse files Browse the repository at this point in the history
  • Loading branch information
AkarinLiu committed Mar 25, 2024
1 parent 7ffa6de commit 0f30fe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ COPY php.ini /etc/php/8.2/apache2/php.ini
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
RUN rm -rf /var/www/html/*
RUN composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
RUN composer create-project flarum/flarum /flarum
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
VOLUME [ "/var/www/html" ]
Expand Down
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ if [ ! -f /var/www/html/site.php ]; then
exit 0
else
echo "Detect Not Installed, Installing..."
cp -R /flarum/* /var/www/html/
composer install
rm -rf /var/www/html
composer create-project flarum/flarum /var/www/html
chown -R www-data:www-data /var/www/html
chmod -R 755 /var/www/html
fi

0 comments on commit 0f30fe0

Please sign in to comment.