forked from suntorytimed/resourcespace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (58 loc) · 1.7 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM --platform=linux/amd64 ubuntu:latest
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
RUN \
echo "**** install runtime dependencies ****" && \
apt-get update && \
apt-get install -y \
vim \
imagemagick \
apache2 \
subversion \
ghostscript \
antiword \
poppler-utils \
libimage-exiftool-perl \
cron \
postfix \
wget \
php \
php-apcu \
php-curl \
php-dev \
php-gd \
php-intl \
php-mysqlnd \
php-mbstring \
php-zip \
libapache2-mod-php \
ffmpeg \
libopencv-dev \
python3-opencv \
python3 \
python3-pip
RUN \
echo "**** clean up ****" && \
apt-get clean
RUN \
sed -i -e "s/upload_max_filesize\s*=\s*2M/upload_max_filesize = 10G/g" /etc/php/8.1/apache2/php.ini && \
sed -i -e "s/post_max_size\s*=\s*8M/post_max_size = 10G/g" /etc/php/8.1/apache2/php.ini && \
sed -i -e "s/max_execution_time\s*=\s*30/max_execution_time = 10000/g" /etc/php/8.1/apache2/php.ini && \
sed -i -e "s/memory_limit\s*=\s*128M/memory_limit = 4G/g" /etc/php/8.1/apache2/php.ini && \
printf '<Directory /var/www/>\n\
\tOptions FollowSymLinks\n\
</Directory>\n'\
>> /etc/apache2/sites-enabled/000-default.conf
RUN \
rm /var/www/html/index.html && \
mkdir /app && \
svn co -q https://svn.resourcespace.com/svn/rs/releases/10.3 /app
ADD cronjob /etc/cron.daily/resourcespace
RUN \
mkdir /app/filestore && \
chmod 777 /app/filestore && \
chmod -R 777 /app/include/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
VOLUME /var/www/html