-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 833 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian:bullseye
ENV OMEKA_VERSION=3.2.1
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y vim-nox unzip rsync curl apache2 libapache2-mod-php php7.4-mysql imagemagick php-imagick php-mbstring php-xml
RUN a2enmod rewrite php7.4
RUN cd /srv && \
curl -O --silent -L https://github.com/omeka/omeka-s/releases/download/v${OMEKA_VERSION}/omeka-s-${OMEKA_VERSION}.zip && \
unzip omeka-s-${OMEKA_VERSION}.zip && \
rsync -av --delete omeka-s/ /var/www/html/ && \
cd /var/www/html && \
chown www-data files
WORKDIR /var/www/html
RUN rm /etc/apache2/sites-enabled/*
COPY omeka-s.conf /etc/apache2/sites-enabled/omeka-s.conf
COPY apache2.conf /etc/apache2/apache2.conf
RUN rm -rf /srv/* && apt-get remove -y --purge unzip rsync curl
EXPOSE 80
CMD ["apachectl", "-D", "FOREGROUND"]