tambah dockerfile untuk railway dan ext-gd

This commit is contained in:
Ryanpratama01 2026-03-16 02:08:58 +07:00
parent 5809218e74
commit 4794a01b0b
1 changed files with 26 additions and 0 deletions

26
Dockerfile Normal file
View File

@ -0,0 +1,26 @@
FROM php:8.2-cli
RUN apt-get update && apt-get install -y \
git \
unzip \
curl \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
libzip-dev \
zip \
libonig-dev \
libxml2-dev \
libicu-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install pdo pdo_mysql mbstring zip intl gd
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /app
COPY . /app
RUN composer install --no-interaction --optimize-autoloader --no-dev
CMD php artisan serve --host=0.0.0.0 --port=${PORT:-8080}