-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (24 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
27 lines (24 loc) · 1.01 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
FROM php:8.2.29-apache
# Did not find the aspell packages for Afrikaans, Latin
RUN apt-get update \
&& apt-get install -y \
dwdiff python3-full golang libzip-dev aspell \
aspell-en aspell-da aspell-nl aspell-eo aspell-fr \
aspell-de aspell-el aspell-it aspell-pt aspell-ro \
aspell-es aspell-gl-minimos \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir /venv \
&& python3 -m venv /venv \
&& /venv/bin/pip3 install \
tinycss cssselect lxml html5lib pytest Pillow regex roman
RUN pecl install zip \
&& sed -e 's/\(post_max_size\s*=\s*\)[0-9]*M/\150M/' \
-e 's/\(upload_max_filesize\s*=\s*\)[0-9]*M/\150M/' \
$PHP_INI_DIR/php.ini-development > $PHP_INI_DIR/php.ini \
&& echo "extension=zip" >> $PHP_INI_DIR/php.ini
COPY docker-entrypoint.sh /
RUN chmod 755 /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
# this CMD is in the upstream image but it gets lost somehow; redefine it
CMD ["apache2-foreground"]