Spaces:
Runtime error
Runtime error
File size: 711 Bytes
387beff 06a7181 387beff 06a7181 375d81f 54e4113 387beff 375d81f 387beff 06a7181 387beff 375d81f 387beff 86f0c03 387beff |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
FROM wordpress:latest
# 必要なパッケージをインストール
RUN apt-get update && apt-get install -y \
git \
unzip \
libsqlite3-dev \
wget \
libicu-dev \
libzip-dev \
libonig-dev \
libxml2-dev \
&& docker-php-ext-install \
pdo_mysql \
mbstring \
zip \
&& docker-php-ext-install pdo pdo_sqlite
# 作業ディレクトリを設定
WORKDIR /var/www/html
# 設定ファイルを変更
RUN echo "define('WP_HOME', 'https://kinkaimasu.jp/mypaget');" >> wp-config.php
RUN echo "define('WP_SITEURL', 'https://kinkaimasu.jp/mypaget');" >> wp-config.php
# 権限の設定
RUN chown -R www-data:www-data /var/www/html
EXPOSE 80
CMD ["apache2-foreground"]
|