-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 751 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 751 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
FROM php:8.0.8-fpm-alpine3.13
ENV COMPOSER_ALLOW_SUPERUSER="1"
ENV PERMANENT_DEPS \
postgresql-dev \
composer \
nginx
RUN set -e \
&& apk add --quiet --no-cache ${PERMANENT_DEPS} > /dev/null \
&& docker-php-ext-install -j$(nproc) pdo_pgsql sockets bcmath intl > /dev/null \
&& docker-php-ext-configure bcmath --enable-bcmath > /dev/null \
&& rm -rf /var/cache/apk/* \
&& mkdir /app /home/user /run/nginx
COPY ./docker/nginx/conf.d/ /etc/nginx/conf.d/
COPY ./docker/.htpasswd /usr/local/.htpasswd
COPY ./docker/php/custom.ini /usr/local/etc/php/conf.d/docker-php-custom.ini
COPY --chown=www-data:www-data . /app
ENV DB_CONNECTION pgsql
WORKDIR /app
RUN set -e \
&& composer install -n --no-ansi
EXPOSE 5000