-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (49 loc) · 1.23 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM existenz/webstack:8.2-edge AS base
RUN apk add --no-cache \
argon2 \
curl \
shadow
RUN apk -U --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main/ add \
icu-libs \
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ \
php82 \
php82-common \
php82-ctype \
php82-curl \
php82-dom \
php82-fileinfo \
php82-fpm \
php82-iconv \
php82-intl \
php82-json \
php82-mbstring \
php82-opcache \
php82-openssl \
php82-pdo \
php82-pdo_pgsql \
php82-pgsql \
php82-phar \
php82-redis \
php82-session \
php82-simplexml \
php82-sodium \
php82-tokenizer \
php82-xml \
php82-xmlreader \
php82-xmlwriter \
php82-zip \
php82-zlib
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY ./docker/ /
RUN ln /usr/bin/php82 /usr/bin/php
FROM base AS dev
ARG WWWGROUP
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ \
php82-xdebug
COPY ./docker/dev-files/ /
RUN groupmod -o -g ${WWWGROUP} php \
&& chown -R php:php /www
FROM base AS prod
COPY --chown=php:php . /www
RUN composer install --ansi \
&& chown -R php:php /www/vendor