Skip to content

Commit e05efee

Browse files
committed
Changed the default nginx listening port to 8000.
1 parent 2b48a96 commit e05efee

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docker/images/web/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ ARG PHP_VERSION=8.4
1212
FROM phpexperts/linux:latest as intermediate
1313
ARG PHP_VERSION
1414

15-
RUN apt-get update && \
16-
apt-get install --no-install-recommends --no-install-suggests -y \
15+
RUN apt update && \
16+
apt install --no-install-recommends --no-install-suggests -y \
1717
ca-certificates \
1818
nginx \
1919
php${PHP_VERSION}-fpm && \
@@ -47,7 +47,7 @@ RUN apt-get update && \
4747
apt-get autoremove -y && \
4848
apt-get clean && \
4949
rm -rf /var/lib/apt/lists/* && \
50-
mkdir /etc/nginx/custom
50+
mkdir -p /etc/nginx/custom
5151

5252
# ARG PHP_VERSION=8.4
5353
# FROM phpexperts/web:nginx-php8.4-temp as builder
@@ -59,13 +59,13 @@ COPY grab_files.sh /grab_files.sh
5959

6060

6161
RUN mkdir -p /tmp/distroless/run/php /tmp/distroless/usr/sbin; \
62+
mkdir -p /tmp/distroless/usr/lib/x86_64-linux-gnu; \
6263
/grab_files.sh "/usr/sbin/nginx"; \
6364
/grab_files.sh "/etc/nginx"; \
6465
/grab_files.sh "/var/lib/nginx"; \
6566
/grab_files.sh "/etc/php"; \
6667
/grab_files.sh "/etc/passwd"; \
6768
/grab_files.sh "/etc/group"; \
68-
mkdir -p /tmp/distroless/usr/lib/x86_64-linux-gnu; \
6969
cp -L /usr/lib/x86_64-linux-gnu/{libcrypt.so.1,libsystemd.so.0} /tmp/distroless/usr/lib/x86_64-linux-gnu; \
7070
/grab_files.sh "/usr/sbin/php-fpm$PHP_VERSION"; \
7171
ln -sv /usr/sbin/php-fpm$PHP_VERSION /tmp/distroless/usr/sbin/php-fpm

install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function installPHP(): string
8585
$newDockerCompose = '';
8686
foreach ($dockerImages as $index => $PHP_IMAGE) {
8787
$PHP_VERSION = $index > 0 ? str_replace(['-debug', '.'], '', $PHP_IMAGE) : '';
88-
$PORT = $index === 0 ? findFirstAvailablePort(80) : "80{$PHP_VERSION}";
88+
$PORT = $index === 0 ? findFirstAvailablePort(8000) : "80{$PHP_VERSION}";
8989
AvailablePort::$PORT = $PORT;
9090

9191
$versionStub = <<<YAML

0 commit comments

Comments
 (0)