Initial Commit
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
FROM php:8.4-fpm-alpine
|
||||
|
||||
# Install dependencies
|
||||
RUN apk add --no-cache nginx curl zip unzip git postgresql-dev \
|
||||
&& docker-php-ext-install pdo pdo_pgsql pgsql opcache
|
||||
|
||||
# Install Composer
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
WORKDIR /var/www
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN composer install --no-dev --optimize-autoloader
|
||||
|
||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["sh", "-c", "php-fpm -D && nginx -g 'daemon off;'"]
|
||||
Reference in New Issue
Block a user