Skip to content

Commit 105c503

Browse files
Add git install and --prefer-dist to the Dockerfile
1 parent 4c97073 commit 105c503

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM php:8.2-cli
22

3-
RUN apt-get update && apt-get install -y libzip-dev
3+
RUN apt-get update && apt-get install -y git libzip-dev
44
RUN docker-php-ext-install pdo pdo_mysql zip
55

66
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
@@ -9,7 +9,7 @@ WORKDIR /app
99

1010
COPY . .
1111

12-
RUN composer install
12+
RUN composer install --prefer-dist
1313
RUN cp .env.example .env
1414
RUN php artisan key:generate
1515

0 commit comments

Comments
 (0)