forked from terrylinooo/githuber-md
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 725 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 725 Bytes
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
FROM php:8.3-cli-slim
RUN apt-get update && apt-get install -y \
unzip \
git \
libzip-dev \
libpng-dev \
libjpeg-dev \
libonig-dev \
libxml2-dev \
curl \
&& docker-php-ext-install pdo pdo_mysql mysqli zip gd
WORKDIR /var/www/html
RUN curl -O https://wordpress.org/latest.zip && \
unzip latest.zip && \
mv wordpress/* . && \
rm -rf wordpress latest.zip
RUN chown -R www-data:www-data /var/www/html
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
chmod +x wp-cli.phar && \
mv wp-cli.phar /usr/local/bin/wp
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
EXPOSE 8000