-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 705 Bytes
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 705 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
26
27
28
29
30
31
32
33
ARG PHPVERSION="8.4"
FROM php:$PHPVERSION-cli-alpine
RUN apk --update --no-cache add \
libpq \
mysql-client \
postgresql-client \
postgresql-dev \
&& rm -rf /tmp/* /var/cache/apk/*
RUN docker-php-ext-install \
pdo_mysql \
pdo_pgsql
RUN apk add --no-cache \
$PHPIZE_DEPS \
linux-headers \
&& pecl install xdebug-3.4.2 \
&& docker-php-ext-enable xdebug \
&& rm -rf /tmp/* /var/cache/apk/*
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
WORKDIR /app
COPY composer.json .
COPY composer.lock .
RUN composer validate
RUN composer install --no-interaction --no-progress
COPY . .
ENTRYPOINT ["./entrypoint.sh"]