Skip to content

Commit be26b78

Browse files
committed
Improve Dockerfile
1 parent baa539b commit be26b78

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
FROM composer/composer:2-bin AS composer
2-
COPY . /app
3-
RUN composer install --no-dev -o
4-
51
FROM php:8.4-cli AS php-cli
6-
COPY --from=composer /app /app
72
WORKDIR /app
3+
4+
COPY --from=composer/composer:2-bin /composer /usr/bin/composer
5+
6+
RUN apt-get update \
7+
&& apt-get install -y zip unzip \
8+
&& rm -rf /var/lib/apt/lists/*
9+
10+
COPY . /app
11+
RUN composer install --no-dev -o && rm /usr/bin/composer

0 commit comments

Comments
 (0)