try to implement the global containerization
This commit is contained in:
1 parent
e2b471312c
commit
ed38086d09
24 files changed
+966
No files matched your search
Executable
+27
@@ -0,0 +1,27 @@
|
||||
FROM php:8.4-fpm
|
||||
|
||||
ARG USER_ID=1000
|
||||
ARG GROUP_ID=1000
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git unzip libzip-dev libpng-dev libonig-dev gosu \
|
||||
&& apt-get install -y netcat-openbsd \
|
||||
&& docker-php-ext-install pdo_mysql zip pcntl
|
||||
|
||||
RUN if [ ${USER_ID:-0} -ne 0 ] && [ ${GROUP_ID:-0} -ne 0 ]; then \
|
||||
groupmod -g ${GROUP_ID} www-data && \
|
||||
usermod -u ${USER_ID} -g ${GROUP_ID} www-data \
|
||||
;fi
|
||||
|
||||
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
COPY scripts/*.sh /usr/local/bin/
|
||||
|
||||
RUN chmod +x /usr/local/bin/*.sh
|
||||
|
||||
WORKDIR /var/www/app
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
CMD ["php-fpm"]
|
||||
Reference in new issue
Block a user