-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (35 loc) · 836 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
40
41
42
FROM php:8.1-cli-bookworm
RUN \
echo 'deb [trusted=yes] https://repo.symfony.com/apt/ /' | tee /etc/apt/sources.list.d/symfony-cli.list; \
apt update; \
apt install -y \
zlib1g-dev \
libzip-dev \
libmcrypt-dev \
libxml2-dev \
libsodium-dev \
libxslt-dev \
libonig-dev \
symfony-cli \
; \
apt-get autoremove -y; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*; \
truncate -s 0 /var/log/*log;
RUN docker-php-ext-install \
zip \
pdo_mysql \
intl \
bcmath \
mbstring \
dom \
xml \
sodium \
xsl \
;
RUN \
mkdir -p /.symfony5; \
chmod 777 -R /.symfony5;
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
WORKDIR /usr/src/myapp
CMD [ "php" ]