-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerdevfile
More file actions
30 lines (20 loc) · 791 Bytes
/
Copy pathDockerdevfile
File metadata and controls
30 lines (20 loc) · 791 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
26
27
28
29
30
FROM php:8.5-cli-alpine3.23 as builder
COPY --from=composer/composer:2.9.5 /usr/bin/composer /usr/bin/composer
COPY composer.json .
RUN composer install \
--no-interaction \
--no-plugins \
--no-dev \
--prefer-dist
RUN composer update
FROM php:8.5-apache
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y libpq-dev libonig-dev postgresql-client wget
RUN wget -O - https://github.com/sqldef/sqldef/releases/latest/download/psqldef_linux_amd64.tar.gz \
| tar xvz && mv psqldef /usr/local/bin/
RUN docker-php-ext-install mbstring pdo pdo_pgsql
COPY --from=builder ./vendor/ ../vendor/
COPY scripts/entrypoint.sh /usr/local/bin/entrypoint
RUN chmod +x /usr/local/bin/entrypoint
ENTRYPOINT ["entrypoint"]
CMD ["docker-php-entrypoint","apache2-foreground"]