From 4794a01b0b4d1c6e847f342c7a8194e01d62755e Mon Sep 17 00:00:00 2001 From: Ryanpratama01 <220441100098@student.trunojoyo.ac.id> Date: Mon, 16 Mar 2026 02:08:58 +0700 Subject: [PATCH] tambah dockerfile untuk railway dan ext-gd --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5d0c2ed --- /dev/null +++ b/Dockerfile @@ -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} \ No newline at end of file