-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
41 lines (34 loc) · 826 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
FROM php:8.0.9-alpine3.14
LABEL maintainer="[email protected]"
RUN apk update && apk add --no-cache --update \
nano \
g++ \
gcc \
curl \
curl-dev \
zip \
unzip \
wget \
make \
bash \
git \
icu-dev \
oniguruma-dev \
tzdata \
libzip-dev \
libmcrypt-dev \
autoconf
RUN docker-php-ext-install pdo \
&& docker-php-ext-install pdo_mysql \
&& docker-php-ext-install mysqli \
&& docker-php-ext-install intl \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install zip \
&& docker-php-ext-install curl \
&& php -m
# Installing Mcrypt extension
RUN pecl install -o -f mcrypt && docker-php-ext-enable mcrypt
RUN rm -rf /var/cache/apk/*
COPY --from=composer /usr/bin/composer /usr/bin/composer
EXPOSE 80
WORKDIR /usr/src/app