blessing-skin-in-docker/Dockerfile
zhangyuheng 1d97e0d568 new file: Dockerfile
modified:   README.md
	new file:   docker-compose.yml
2023-12-05 14:19:12 +08:00

29 lines
1.1 KiB
Docker

FROM php:8.0.2-apache
RUN apt update && \
apt install wget -y && \
cd /usr/local/bin && \
wget -c https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions
RUN chmod +x /usr/local/bin/install-php-extensions && \
export http_proxy=http://192.168.27.1:7890 && \
export https_proxy=http://192.168.27.1:7890 && \
install-php-extensions gd zip pdo_dblib pdo_pgsql pdo_mysql
WORKDIR /app
RUN wget -e "https_proxy=http://192.168.27.1:7890" -c https://github.com/bs-community/blessing-skin-server/releases/download/6.0.2/blessing-skin-server-6.0.2.zip && \
apt update && apt install unzip -y && \
unzip blessing-skin-server-6.0.2.zip && \
mv .env.example .env && \
mv .env storage/ && \
ln -s storage/.env .env && \
mkdir storage/plugins
ENV APACHE_DOCUMENT_ROOT /app/public
RUN chown -R www-data:www-data . && \
sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf && \
sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf && \
a2enmod rewrite headers