-
Notifications
You must be signed in to change notification settings - Fork 84
/
Dockerfile
33 lines (20 loc) · 864 Bytes
/
Dockerfile
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
31
32
33
# Copyright (c) 2019 Andreas Goetz <[email protected]>
ARG PHP_IMAGE_TAG=8.2-alpine
FROM php:$PHP_IMAGE_TAG AS builder
WORKDIR /vz
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY composer.json /vz
RUN composer install --ignore-platform-reqs --no-ansi --no-scripts --no-dev --no-interaction --no-progress --optimize-autoloader
COPY . /vz
FROM php:$PHP_IMAGE_TAG
EXPOSE 8080
EXPOSE 8082
EXPOSE 5582
RUN apk add --no-cache postgresql-libs postgresql-dev \
&& docker-php-ext-install pcntl pdo_mysql pdo_pgsql mysqli \
&& apk del postgresql-dev
COPY --from=builder /vz /vz
COPY --from=builder /vz/etc/config.dist.yaml /vz/etc/config.yaml
# modify options.js
RUN sed -i "s/url: 'api'/url: '',/" /vz/htdocs/js/options.js
CMD /vz/vendor/bin/ppm start -c /vz/etc/middleware.json --static-directory /vz/htdocs --cgi-path=/usr/local/bin/php