Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 83d5d34

Browse files
committed
chore: docker improve cache
1 parent 9392c5b commit 83d5d34

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

‎Dockerfile‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
ARG PHP_VERSION=8.1
2-
ARG COMPOSER_VERSION=2.5.4
3-
4-
FROM composer:${COMPOSER_VERSION}
5-
FROM php:${PHP_VERSION}-cli
1+
FROM composer:2.5.4
2+
FROM php:8.1-cli
63

74
RUN apt-get update && \
85
apt-get install -y autoconf pkg-config libssl-dev git libzip-dev zlib1g-dev && \
@@ -14,8 +11,10 @@ COPY --from=composer /usr/bin/composer /usr/local/bin/composer
1411

1512
WORKDIR /code
1613

17-
COPY . .
14+
COPY composer.* ./
1815

1916
RUN composer install
2017

18+
COPY ./ ./
19+
2120
CMD ["./vendor/bin/phpunit"]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /