-
-
Notifications
You must be signed in to change notification settings - Fork 319
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 707 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM composer:2 AS composer
ADD composer.* ./
ADD src/ src
RUN composer install --optimize-autoloader --prefer-dist --no-progress --no-interaction --ignore-platform-reqs
FROM php:8.5-cli-alpine AS phing
LABEL org.opencontainers.image.authors="Phing <info@phing.info>"
RUN curl -sSLf \
-o /usr/local/bin/install-php-extensions \
https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && \
chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions gettext intl sockets tidy xsl zip
WORKDIR /app
ADD bin/phing* bin/
ADD src/ src
ADD etc/ etc
COPY --from=composer /app/vendor/ ./vendor
ENTRYPOINT ["bin/phing"]