You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
517 B

FROM php:8.1-fpm
ARG user=contacte
ARG uid=1000
1 year ago
RUN apt-get update && apt-get install -y curl zip unzip nodejs vim sudo
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php
RUN HASH=`curl -sS https://composer.github.io/installer.sig`
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
RUN useradd -G www-data,root -u $uid -d /home/$user $user
WORKDIR /var/www
COPY . .
EXPOSE 80