1
- FROM ubuntu:latest
2
- MAINTAINER Montala Ltd
1
+ FROM ubuntu:24.04
2
+
3
+ LABEL org.opencontainers.image.authors="Montala Ltd"
4
+
3
5
ENV DEBIAN_FRONTEND="noninteractive"
6
+
4
7
RUN apt-get update && apt-get install -y \
5
8
nano \
6
9
imagemagick \
@@ -28,11 +31,13 @@ RUN apt-get update && apt-get install -y \
28
31
python3-opencv \
29
32
python3 \
30
33
python3-pip \
34
+ && apt-get clean \
31
35
&& rm -rf /var/lib/apt/lists/*
32
- RUN sed -i -e "s/upload_max_filesize\s *=\s *2M/upload_max_filesize = 100M/g" /etc/php/8.3/apache2/php.ini
33
- RUN sed -i -e "s/post_max_size\s *=\s *8M/post_max_size = 100M/g" /etc/php/8.3/apache2/php.ini
34
- RUN sed -i -e "s/max_execution_time\s *=\s *30/max_execution_time = 300/g" /etc/php/8.3/apache2/php.ini
35
- RUN sed -i -e "s/memory_limit\s *=\s *128M/memory_limit = 1G/g" /etc/php/8.3/apache2/php.ini
36
+
37
+ RUN sed -i -e "s/upload_max_filesize\s *=\s *2M/upload_max_filesize = 100M/g" /etc/php/8.3/apache2/php.ini \
38
+ && sed -i -e "s/post_max_size\s *=\s *8M/post_max_size = 100M/g" /etc/php/8.3/apache2/php.ini \
39
+ && sed -i -e "s/max_execution_time\s *=\s *30/max_execution_time = 300/g" /etc/php/8.3/apache2/php.ini \
40
+ && sed -i -e "s/memory_limit\s *=\s *128M/memory_limit = 1G/g" /etc/php/8.3/apache2/php.ini
36
41
37
42
RUN printf '<Directory /var/www/>\n \
38
43
\t Options FollowSymLinks\n \
@@ -42,9 +47,11 @@ RUN printf '<Directory /var/www/>\n\
42
47
ADD cronjob /etc/cron.daily/resourcespace
43
48
44
49
WORKDIR /var/www/html
45
- RUN rm index.html
46
- RUN svn co -q https://svn.resourcespace.com/svn/rs/releases/10.5 .
47
- RUN mkdir filestore
48
- RUN chmod 777 filestore
49
- RUN chmod -R 777 include/
50
+
51
+ RUN rm -f index.html \
52
+ && svn co -q https://svn.resourcespace.com/svn/rs/releases/10.5 . \
53
+ && mkdir -p filestore \
54
+ && chmod 777 filestore \
55
+ && chmod -R 777 include/
56
+
50
57
CMD apachectl -D FOREGROUND
0 commit comments