mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:41:07 +03:30
dockerize cssd for developement
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# Use the official PHP image as the base image
|
||||
FROM 'docker-proxy.meshkee.com/php:8.2-fpm'
|
||||
|
||||
# Set working directory inside the container
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
curl \
|
||||
libpng-dev \
|
||||
libonig-dev \
|
||||
libxml2-dev \
|
||||
zip \
|
||||
unzip \
|
||||
libzip-dev \
|
||||
libpq-dev \
|
||||
libfreetype6-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libmcrypt-dev \
|
||||
libssl-dev \
|
||||
libicu-dev \
|
||||
g++ \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install -j$(nproc) gd \
|
||||
&& docker-php-ext-install pdo_mysql pdo_pgsql mbstring exif pcntl bcmath opcache intl zip
|
||||
|
||||
# Install Composer
|
||||
COPY --from=docker-proxy.meshkee.com/composer:2 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# Copy application code into the container
|
||||
COPY . .
|
||||
|
||||
# Install PHP dependencies
|
||||
RUN composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||
|
||||
# Set permissions for the Laravel project
|
||||
RUN chown -R www-data:www-data /var/www/html \
|
||||
&& chmod -R 777 /var/www/html/storage /var/www/html/bootstrap/cache
|
||||
|
||||
# Expose port 9000 for PHP-FPM
|
||||
EXPOSE 9000
|
||||
Reference in New Issue
Block a user