forked from ccnmtl/omeka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (21 loc) · 866 Bytes
/
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
FROM tutum/apache-php:latest
MAINTAINER ccnmtl <ccnmtl-sysadmin@columbia.edu>
# adapted from https://github.com/erochest/docker-omeka/blob/master/Dockerfile
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& apt-get -y --force-yes install apache2 imagemagick software-properties-common \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& a2enmod rewrite \
&& service apache2 restart
COPY ./files/omeka-2.4.1/ /app/
RUN chmod -R a+rwx /app/files
COPY ./files/db.ini /app/db.ini
COPY ./files/application/config/config.ini /app/application/config/config.ini
COPY ./files/plugins/ /app/plugins/
COPY ./files/htaccess /app/.htaccess
COPY ./files/000-default.conf /etc/apache2/sites-available/000-default.conf
# address imagemagick vulnerability
COPY ./files/imagemagick-policy.xml /etc/ImageMagick/policy.xml
EXPOSE 80
WORKDIR /app
CMD ["/run.sh"]