aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 8a3acea7b4920523a4787a71aa5522d7fc75d57c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM php:7.1-apache

EXPOSE 80

# Note that 'vim' and 'mysql-client' are changed to an echo,
# as they're only useful when debugging, and leaving them in
# the standard container only increases its size.
RUN apt-get -y update && \
	apt-get -y install libpng-dev zlib1g-dev cron && \
	echo apt-get -y install vim mysql-client && \
	a2enmod rewrite && \
	docker-php-ext-install mysqli gd && \
	rm -rf /var/lib/apt/lists/*

COPY htdocs /var/www/html
COPY htdocs/application/config/stikked.php.dist /var/www/html/application/config/stikked.php

# This overwrites the entrypoint from the php container with ours, which updates the
# stikked config file based on environment variables
COPY docker/docker-php-entrypoint /usr/local/bin/

RUN chmod +x /usr/local/bin/docker-php-entrypoint

© 2014-2024 Faster IT GmbH | imprint | privacy policy