tambah dockerfile untuk railway dan ext-gd
This commit is contained in:
parent
5809218e74
commit
4794a01b0b
|
|
@ -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}
|
||||
Loading…
Reference in New Issue