tambah build vite untuk railway
This commit is contained in:
parent
90596c60b0
commit
6cd6dde462
|
|
@ -12,6 +12,8 @@ RUN apt-get update && apt-get install -y \
|
|||
libonig-dev \
|
||||
libxml2-dev \
|
||||
libicu-dev \
|
||||
nodejs \
|
||||
npm \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install pdo pdo_mysql mbstring zip intl gd
|
||||
|
||||
|
|
@ -22,5 +24,7 @@ WORKDIR /app
|
|||
COPY . /app
|
||||
|
||||
RUN composer install --no-interaction --optimize-autoloader --no-dev
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
CMD php artisan serve --host=0.0.0.0 --port=${PORT:-8080}
|
||||
Loading…
Reference in New Issue