<aside> ℹ️ 이 단계에서 해야할 것
Dockerfile
$ docker build -t wordpress:42 .
$ docker image ls
$ docker run -d wordpress:42
$ docker ps -a
docker-compose.yaml
depends_on
설정 필요$ docker network ls
$ docker volume ls
$ docker volume inspect wordpress
$ ls /home/minjungk/data/
</aside>
PHP 7.4
이상, MySQL 5.7
또는 MariaDB 10.4
이상How to install WordPress | Advanced Administration Handbook | WordPress Developer Resources
PHP: FastCGI Process Manager (FPM) - Manual
# 다단계 빌드 예시
FROM alpine:3.17.5 as unpack
ADD --chmod=644 <https://wordpress.org/wordpress-6.3.1.tar.gz>
RUN tar -xzf wordpress-6.3.1.tar.gz && rm wordpress-6.3.1.tar.gz
FROM alpine:3.17.5
COPY --chown=www:www --chmod=644 --from=unpack /wordpress /var/www/