forked from UB-Mannheim/kitodo-presentation-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (28 loc) · 1.2 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
# Use TYPO3 v10 base image based on Apache2 on Debian 11 bullseye
# https://hub.docker.com/r/csidirop/typo3-v10/
# https://github.com/csidirop/typo3-docker/tree/typo3-v10.x
FROM csidirop/typo3-v10:10.4-230202
LABEL authors='Christos Sidiropoulos <[email protected]>'
ENV DB_ADDR=localhost
ENV DB_PORT=3306
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
# Cleanup:
RUN apt-get purge -y \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy startup script and data folder into the container:
COPY docker-entrypoint.sh /
ADD data/ /data
# Fix wrong line endings in the startup script and just to be save in data files:
RUN sed -i.bak 's/\r$//' /docker-entrypoint.sh /data/*.* /data/scripts/*
# 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