forked from felipe.fontana/simples-painel
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.
33 lines
996 B
33 lines
996 B
FROM php:8.1-fpm |
|
|
|
ENV TZ=America/Cuiaba |
|
SHELL ["/bin/bash", "--login", "-c"] |
|
|
|
ARG user=contacte |
|
ARG uid=1000 |
|
|
|
# RUN apt-get update && apt-get install -y curl zip unzip nodejs npm vim sudo |
|
RUN apt-get update && apt-get install -y curl zip unzip 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 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash |
|
RUN useradd -G www-data,root -u $uid -d /home/$user $user |
|
|
|
WORKDIR /var/www |
|
COPY . . |
|
RUN chown $user:$user -R /var/www |
|
RUN composer install |
|
RUN nvm install 18.17.1 |
|
RUN chmod -R 777 /var/www/storage |
|
RUN npm install |
|
RUN npm run build |
|
RUN php artisan key:generate |
|
EXPOSE 8181 |
|
|
|
ENTRYPOINT [ "php" ] |
|
|
|
CMD ["artisan", "serve", "--host", "0.0.0.0", "--port", "80"]'
|
|
|