forked from suntorytimed/resourcespace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* beginning with 9.4 the containers are based on ubuntu:latest
- Loading branch information
1 parent
1d98d35
commit ddce1b0
Showing
2 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
FROM ubuntu:latest | ||
MAINTAINER Stefan Weiberg <[email protected]> | ||
ENV DEBIAN_FRONTEND="noninteractive" | ||
RUN apt-get update && apt-get install -y \ | ||
vim \ | ||
imagemagick \ | ||
apache2 \ | ||
subversion \ | ||
ghostscript \ | ||
antiword \ | ||
poppler-utils \ | ||
libimage-exiftool-perl \ | ||
cron \ | ||
postfix \ | ||
wget \ | ||
php \ | ||
php-dev \ | ||
php-gd \ | ||
php-mysqlnd \ | ||
php-mbstring \ | ||
php-zip \ | ||
libapache2-mod-php \ | ||
ffmpeg \ | ||
libopencv-dev \ | ||
python3-opencv \ | ||
python3 \ | ||
python3-pip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN sed -i -e "s/upload_max_filesize\s*=\s*2M/upload_max_filesize = 10G/g" /etc/php/7.4/apache2/php.ini | ||
RUN sed -i -e "s/post_max_size\s*=\s*8M/post_max_size = 10G/g" /etc/php/7.4/apache2/php.ini | ||
RUN sed -i -e "s/max_execution_time\s*=\s*30/max_execution_time = 10000/g" /etc/php/7.4/apache2/php.ini | ||
RUN sed -i -e "s/memory_limit\s*=\s*128M/memory_limit = 4G/g" /etc/php/7.4/apache2/php.ini | ||
|
||
RUN printf '<Directory /var/www/>\n\ | ||
\tOptions FollowSymLinks\n\ | ||
</Directory>\n'\ | ||
>> /etc/apache2/sites-enabled/000-default.conf | ||
|
||
ADD cronjob /etc/cron.daily/resourcespace | ||
|
||
WORKDIR /var/www/html | ||
RUN rm index.html | ||
RUN svn co https://svn.resourcespace.com/svn/rs/releases/9.4 . | ||
RUN mkdir filestore | ||
RUN chmod 777 filestore | ||
RUN chmod -R 777 include/ | ||
CMD apachectl -D FOREGROUND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters