-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM php:8.1-fpm | ||
LABEL maintainer="[email protected]" | ||
LABEL build_date="2024-11-23" | ||
RUN mkdir -p /var/www/ | ||
WORKDIR /var/www | ||
RUN mkdir -p /var/www/vendor | ||
RUN apt-get update -qq && apt-get -y dist-upgrade && apt-get -y --no-install-recommends --no-install-suggests install build-essential libicu-dev libzip-dev libpng-dev libonig-dev libpq-dev zip unzip wget nano curl git && apt-get clean && rm -rf /var/lib/{apt,dpkg,cache,log} && apt -y autoremove | ||
RUN docker-php-ext-install bcmath mbstring pcntl intl zip opcache gd pdo pdo_pgsql pgsql | ||
RUN docker-php-ext-configure zip | ||
|
@@ -11,5 +11,4 @@ COPY ./php.ini /usr/local/etc/php/php.ini | |
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
RUN chmod 777 /usr/bin/composer | ||
RUN groupadd -g 1000 www && useradd -u 1000 -ms /bin/bash -g www www | ||
USER www | ||
CMD ["php-fpm"] |