forked from DirectoryLister/DirectoryLister
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 997 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (19 loc) · 997 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
FROM php:8.1-apache
LABEL maintainer="Chris Kankiewicz <Chris@ChrisKankiewicz.com>"
ENV HOME="/tmp"
ENV COMPOSER_HOME="/tmp"
ENV XDG_CONFIG_HOME="/tmp/.config"
COPY --from=composer:2.3 /usr/bin/composer /usr/bin/composer
COPY --from=node:18.4 /usr/local/bin/node /usr/local/bin/node
COPY --from=node:18.4 /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 \
&& ln --symbolic ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx
RUN apt-get update && apt-get install --assume-yes --no-install-recommends \
libmemcached-dev libzip-dev tar zip \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install opcache zip \
&& pecl install apcu memcached redis xdebug \
&& docker-php-ext-enable apcu memcached redis xdebug
RUN a2enmod rewrite
COPY .docker/apache2/config/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY .docker/php/config/php.ini /usr/local/etc/php/php.ini