-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (32 loc) · 854 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
#origin
FROM php:8.0-apache AS php8
#workdir
ENV APPPATH app
WORKDIR /var/www/html/$APPPATH
#copies
COPY . /var/www/html/$APPPATH
#tools
RUN apt-get -y update
RUN apt-get install -y \
git \
tree \
vim \
wget \
subversion
RUN apt-get install -y \
libzip-dev \
zip
RUN apt-get install -y
RUN apt-get install -y \
autoconf pkg-config libssl-dev
RUN pecl install mongodb && docker-php-ext-enable mongodb
RUN echo "extension=mongodb.so" >> /usr/local/etc/php/php.ini
RUN pecl install -o -f redis \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis
#extensions
RUN docker-php-ext-install pdo pdo_mysql
RUN docker-php-ext-install zip
#commands
RUN rm -rf /var/cache/apk/*
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer