-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (33 loc) · 1.83 KB
/
Dockerfile
File metadata and controls
44 lines (33 loc) · 1.83 KB
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
34
35
36
37
38
39
40
41
42
43
44
FROM alpine:3.20
LABEL name="FlyingFlip Apline Linux Based Development Image"
LABEL description="The LAMP Stack underpinning for the Development"
LABEL author="Michael R. Bagnall <hello@flyingflip.com>"
LABEL vendor="FlyingFlip Studios, LLC."
ENV TERM=xterm
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/src/vendor/bin:/src/vendor/drush/drush:/var/www/html/vendor/drush/drush
# Copy our Alpine compiled iconv library
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.12/community/ --allow-untrusted gnu-libiconv=1.15-r2
# Install all of our base packages for making the image work.
RUN apk update && \
apk add --no-cache \
openrc mariadb-client php83-apache2 wget bash \
php83 php83-bcmath php83-bz2 php83-curl php83-dba php83-mbstring \
php83-opcache php83-fileinfo php83-pdo_mysql php83-mysqli php83-xml php83-zip php83-pecl-redis \
php83-pecl-memcached php83-pear git vim zip gzip curl php83-cgi \
php83-common sudo php83-simplexml php83-cli mlocate php83-phar php83-dom php83-tokenizer \
apache2-ctl redis memcached ncurses php83-ctype php83-iconv apache2-proxy \
php83-gd gnu-libiconv apache2-ssl php83-xmlreader php83-xmlwriter lsof procps patch
# By default, alpine puts PHP in as "php7" or "php8". We need to homogenize it.
RUN ln -s /usr/bin/php83 /bin/php
# Install composer and drush.
RUN apk add php83-cli && curl -sS https://getcomposer.org/installer | php -- \
--install-dir=/usr/local/bin \
--filename=composer
COPY files/apache-default-host.conf /etc/apache2/conf.d/apache-default-host.conf
COPY files/ssl_environment_variable.conf /etc/apache2/conf.d/ssl_environment_variable.conf
COPY files/httpd.conf /etc/apache2/httpd.conf
RUN mkdir -p /var/www/html
RUN rm /usr/bin/vi
RUN ln -s /usr/bin/vim /usr/bin/vi
ADD files/run-httpd.sh /run-httpd.sh
CMD ["bash", "/run-httpd.sh"]