-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
39 lines (31 loc) · 1000 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
34
35
36
37
38
39
FROM alpine:3.19
ARG PHP_VERSION=83
ARG UID=1000
ARG USER=app
RUN apk add --no-cache \
php${PHP_VERSION} \
php${PHP_VERSION}-gd \
php${PHP_VERSION}-intl \
php${PHP_VERSION}-opcache \
php${PHP_VERSION}-zip \
php${PHP_VERSION}-phar \
php${PHP_VERSION}-iconv \
php${PHP_VERSION}-mbstring \
php${PHP_VERSION}-openssl \
php${PHP_VERSION}-curl \
php${PHP_VERSION}-dom \
php${PHP_VERSION}-tokenizer \
php${PHP_VERSION}-xml \
php${PHP_VERSION}-simplexml \
php${PHP_VERSION}-xmlreader \
php${PHP_VERSION}-xmlwriter \
php${PHP_VERSION}-session \
php${PHP_VERSION}-pdo_sqlite \
php${PHP_VERSION}-fileinfo \
php${PHP_VERSION}-pecl-pcov --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing
RUN ln -snf /usr/bin/php${PHP_VERSION} /usr/bin/php
RUN adduser -u $UID -D $USER
ENV PATH="/usr/app/vendor/bin:/usr/app/bin:${PATH}"
COPY --from=composer:2.7 /usr/bin/composer /usr/bin/composer
USER ${USER}
WORKDIR /usr/app