File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,7 @@ FROM php
33RUN apt-get update && apt-get install -y libzip-dev
44RUN docker-php-ext-install pdo pdo_mysql zip
55
6- RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
7- && php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
8- && php -r "unlink('composer-setup.php');"
9-
10- RUN curl -fsSL https://nodistro.nodesource.com/setup_22.12.0 | bash - \
11- && apt-get install -y nodejs npm
6+ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
127
138WORKDIR /app
149
@@ -17,9 +12,5 @@ COPY . .
1712RUN composer install
1813RUN cp .env.example .env
1914RUN php artisan key:generate
20- RUN npm ci
21- RUN npm run build
22-
23- RUN > database/database.sqlite
2415
2516CMD ["bash" , "-c" , "php artisan migrate --seed && make start" ]
You can’t perform that action at this time.
0 commit comments