Skip to content

Commit 44a7df0

Browse files
committed
fix missing packages in php82-node20
1 parent fd6d714 commit 44a7df0

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
FROM ghcr.io/openconext/openconext-basecontainers/php82-apache2:latest
2+
23
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
34
COPY --from=node:20-slim /usr/local/bin /usr/local/bin
45
COPY --from=node:20-slim /opt /opt
56
COPY --from=node:20-slim /usr/local/lib/node_modules /usr/local/lib/node_modules
6-
RUN apt update && apt -y install git unzip zip vim
7-
RUN pecl install xdebug && docker-php-ext-enable xdebug
7+
8+
RUN \
9+
apt update && \
10+
apt -y install \
11+
git \
12+
unzip \
13+
zip \
14+
vim \
15+
&& \
16+
rm -rf /var/lib/apt/lists/* /var/cache/apt
17+
18+
RUN \
19+
pecl install xdebug && \
20+
docker-php-ext-enable xdebug
821
COPY ./conf/xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
9-
RUN apt autoremove -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/*
10-
RUN mkdir -p /var/www/html/public
11-
RUN rm -rf /etc/apache2/sites-enabled/*
22+
23+
RUN \
24+
rm -rf /etc/apache2/sites-enabled/* && \
25+
mkdir -p /var/www/html/public
26+
1227
COPY ./conf/appconf.conf /etc/apache2/sites-enabled/

0 commit comments

Comments
 (0)