-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (22 loc) · 779 Bytes
/
Dockerfile
File metadata and controls
25 lines (22 loc) · 779 Bytes
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
FROM php:8.3-cli-bookworm
WORKDIR "/application"
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
libpq-dev \
libsqlite3-dev \
unzip \
wget \
default-mysql-client \
postgresql-client \
&& docker-php-ext-install \
pdo_mysql \
pdo_pgsql \
pdo_sqlite \
&& pecl install mongodb \
&& docker-php-ext-enable mongodb \
&& wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian92-x86_64-100.3.1.deb \
&& apt install ./mongodb-database-tools-*.deb \
&& apt-get clean \
&& rm -rf mongodb-database-tools-*.deb /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
CMD ["/bin/sh", "-ec", "sleep infinity"]