remove compose file to another repo
This commit is contained in:
34
Dockerfile
Normal file
34
Dockerfile
Normal file
@@ -0,0 +1,34 @@
|
||||
FROM docker.arvancloud.ir/php:8.3-fpm-alpine3.21
|
||||
|
||||
# Install common php extension dependencies
|
||||
RUN apk update && apk add --no-cache \
|
||||
bash \
|
||||
nano \
|
||||
curl \
|
||||
libpng \
|
||||
libpng-dev \
|
||||
libjpeg-turbo-dev \
|
||||
libwebp \
|
||||
libwebp-dev \
|
||||
libxml2-dev \
|
||||
unzip \
|
||||
libzip-dev \
|
||||
libpq-dev \
|
||||
&& docker-php-ext-install pdo_pgsql
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /var/www/crm
|
||||
COPY . .
|
||||
|
||||
RUN chmod -R 777 /var/www/crm/storage /var/www/crm/bootstrap/cache
|
||||
|
||||
|
||||
# install composer
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# Set the default command to run php-fpm
|
||||
CMD composer install;\
|
||||
php artisan key:generate;\
|
||||
php artisan migrate ;\
|
||||
php artisan db:seed;\
|
||||
php-fpm
|
||||
Reference in New Issue
Block a user