Skip to content

Commit 3925b26

Browse files
committed
Refactor Dockerfile to streamline environment variable definitions and ensure compatibility with pip installations
1 parent 8934ea8 commit 3925b26

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FROM ubuntu:24.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
4-
ARG DEFAULT_PHP_VERSION=7.4
54

65
LABEL "com.github.actions.icon"="upload-cloud"
76
LABEL "com.github.actions.color"="yellow"
@@ -10,9 +9,10 @@ LABEL "com.github.actions.description"="Deploy WordPress code to a server"
109
LABEL "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

1717
RUN apt update && \
1818
apt install -y \
@@ -28,7 +28,7 @@ RUN apt update && \
2828
add-apt-repository ppa:ondrej/php && \
2929
apt update && \
3030
apt-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 && \
3232
rm -rf /var/lib/apt/lists/*
3333

3434
# Setup wp-cli

0 commit comments

Comments
 (0)