-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
37 lines (30 loc) · 1.41 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
30
31
32
33
34
35
36
37
# Use TYPO3 v11 base image based on Apache2 on Debian 11 bullseye
# https://hub.docker.com/r/csidirop/typo3-v11/
# https://github.com/csidirop/typo3-docker/tree/typo3-v11.x
FROM csidirop/typo3-v11:latest
LABEL authors='Christos Sidiropoulos <[email protected]>'
EXPOSE 80
# This Dockerfile aims to install a working TYPO3 v10 instance with the kitodo/presentation extension
# based on this guide: https://github.com/UB-Mannheim/kitodo-presentation/wiki
# Update and install packages:
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install -y --no-install-recommends \
jq \
gettext
# Copy startup script and data folder into the container:
COPY docker-entrypoint.sh docker-entrypoint-aux.sh /
ADD data/ /data
ARG PHP_MEMORY_LIMIT
ENV PHP_MEMORY_LIMIT $PHP_MEMORY_LIMIT
# Cleanup and last steps:
RUN apt-get purge -y \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists \
# Fix wrong line endings in the startup script and just to be save in data files:
&& sed -i.bak 's/\r$//' /docker-entrypoint.sh /docker-entrypoint-aux.sh /data/*.* /data/scripts/* \
# Set PHP memory limit:
&& sed -i "s/memory_limit = .*/memory_limit = ${PHP_MEMORY_LIMIT}/" /usr/local/etc/php/php.ini
# Run startup script & start apache2 (https://github.com/docker-library/php/blob/master/7.4/bullseye/apache/apache2-foreground)
CMD /docker-entrypoint.sh & apache2-foreground