All checks were successful
continuous-integration/drone/push Build is passing
41 lines
771 B
Docker
41 lines
771 B
Docker
FROM php:8.3-fpm
|
|
|
|
# Install system dependencies & PHP extensions
|
|
RUN apt-get update && apt-get install -y \
|
|
libzip-dev \
|
|
unzip \
|
|
git \
|
|
libpq-dev \
|
|
libicu-dev \
|
|
zip \
|
|
curl \
|
|
&& docker-php-ext-install \
|
|
intl \
|
|
zip \
|
|
pdo_pgsql \
|
|
bcmath
|
|
|
|
# Install Composer
|
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
|
|
|
# Set working directory
|
|
WORKDIR /var/www
|
|
|
|
# Copy project files
|
|
COPY . .
|
|
|
|
# Install Laravel dependencies
|
|
RUN composer install --no-interaction --prefer-dist --optimize-autoloader
|
|
|
|
# Create storage folders (in case they don't exist)
|
|
RUN mkdir -p storage/framework/{cache,sessions,views} bootstrap/cache
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
EXPOSE 9000
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|