11FROM ubuntu:24.04
22
33ARG DEBIAN_FRONTEND=noninteractive
4- ARG DEFAULT_PHP_VERSION=7.4
54
65LABEL "com.github.actions.icon" ="upload-cloud"
76LABEL "com.github.actions.color" ="yellow"
@@ -10,9 +9,10 @@ LABEL "com.github.actions.description"="Deploy WordPress code to a server"
109LABEL "org.opencontainers.image.source" ="https://github.com/rtCamp/action-deploy-wordpress"
1110
1211
13- ENV PATH"/composer/vendor/bin:~/.local/bin:$PATH"
14- ENV COMPOSER_ALLOW_SUPERUSER 1
15- ENV COMPOSER_HOME /composer
12+ ENV PATH="/composer/vendor/bin:~/.local/bin:$PATH"
13+ ENV COMPOSER_ALLOW_SUPERUSER=1
14+ ENV COMPOSER_HOME=/composer
15+ ENV DEFAULT_PHP_VERSION=7.4
1616
1717RUN apt update && \
1818apt install -y \
@@ -28,7 +28,7 @@ RUN apt update && \
2828add-apt-repository ppa:ondrej/php && \
2929apt update && \
3030apt-get install -y php7.4-cli php7.4-curl php7.4-json php7.4-mbstring php7.4-xml php7.4-iconv php7.4-yaml && \
31- pip3 install shyaml && \
31+ pip3 install shyaml--break-system-packages && \
3232rm -rf /var/lib/apt/lists/*
3333
3434# Setup wp-cli