Skip to content

Commit

Permalink
Merge pull request #7 from JamDevCo/update-dockerfile-for-pgsql
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
bymrbanks authored Sep 18, 2024
2 parents 4253ff2 + e9b0e09 commit eae72c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ RUN apt-get update && apt-get install -y \
libicu-dev \
libonig-dev \
libzip-dev \
libpq-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install pdo mbstring exif pcntl bcmath gd intl zip
&& docker-php-ext-install pdo pdo_pgsql mbstring exif pcntl bcmath gd intl zip


# Install Composer
Expand All @@ -27,10 +28,10 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY . /var/www

# Set permissions for www-data user
RUN chown -R www-data:www-data /var/www
# RUN chown -R www-data:www-data /var/www

# Switch to www-data user
USER www-data
# USER www-data

# Install composer dependencies
RUN composer install
Expand Down

0 comments on commit eae72c8

Please sign in to comment.