|
@@ -1,6 +1,8 @@
|
|
FROM php:8.0-fpm-buster
|
|
FROM php:8.0-fpm-buster
|
|
MAINTAINER Mark Shust <mark@shust.com>
|
|
MAINTAINER Mark Shust <mark@shust.com>
|
|
|
|
|
|
|
|
+ARG APP_ID=1000
|
|
|
|
+
|
|
RUN apt-get update && apt-get install -y \
|
|
RUN apt-get update && apt-get install -y \
|
|
cron \
|
|
cron \
|
|
default-mysql-client \
|
|
default-mysql-client \
|
|
@@ -52,8 +54,8 @@ RUN pecl channel-update pecl.php.net \
|
|
RUN pecl install redis \
|
|
RUN pecl install redis \
|
|
&& docker-php-ext-enable redis
|
|
&& docker-php-ext-enable redis
|
|
|
|
|
|
-RUN groupadd -g 1000 app \
|
|
|
|
- && useradd -g 1000 -u 1000 -d /var/www -s /bin/bash app
|
|
|
|
|
|
+RUN groupadd -g "$APP_ID" app \
|
|
|
|
+ && useradd -g "$APP_ID" -u "$APP_ID" -d /var/www -s /bin/bash app
|
|
|
|
|
|
RUN apt-get install -y gnupg \
|
|
RUN apt-get install -y gnupg \
|
|
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
|
|
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
|