blob: 00098b02cfad9a6fc67881c9c86ce99c3cdc4704 (
plain)
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
|
FROM alpine
RUN apk update && \
apk upgrade && \
apk add php7 php7-fpm php7-opcache php7-gd php7-mysqli \
php7-zlib php7-curl php7-mbstring php7-json php7-session curl \
php7-fpm nginx openrc && \
curl 'https://wordpress.org/wordpress-5.5.1.tar.gz' > wordpress.tar.gz
RUN tar xf wordpress.tar.gz && \
rm -rf /var/www && \
mv wordpress /var/www
COPY nginx.conf /etc/nginx/conf.d
RUN mkdir -p /run/nginx && \
rm /etc/nginx/conf.d/default.conf
COPY wp-config.php /var/www/wp-config.php
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x entrypoint.sh
EXPOSE 5050
CMD "/entrypoint.sh"
|