-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
29 lines (20 loc) · 1.06 KB
/
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
FROM php:8.3-apache
LABEL maintainer="Chris Kankiewicz <[email protected]>"
COPY --from=composer:2.7 /usr/bin/composer /usr/bin/composer
COPY --from=node:20.17 /usr/local/bin/node /usr/local/bin/node
COPY --from=node:20.17 /usr/local/lib/node_modules /usr/local/lib/node_modules
RUN ln --symbolic ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm
RUN ln --symbolic ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx
ENV HOME="/home/dev"
ENV COMPOSER_HOME="${HOME}/.config/composer"
ENV XDG_CONFIG_HOME="${HOME}/.config"
RUN useradd --create-home --shell /bin/bash dev
RUN a2enmod rewrite
RUN apt-get update && apt-get --assume-yes install libicu-dev libzip-dev \
mariadb-client sqlite3 tzdata && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure intl \
&& docker-php-ext-install bcmath intl pdo_mysql zip \
&& pecl install redis xdebug && docker-php-ext-enable redis xdebug
COPY ./.docker/php/config/php.ini /usr/local/etc/php/php.ini
COPY ./.docker/apache2/config/000-default.conf /etc/apache2/sites-available/000-default.conf
USER dev