Skip to content

Commit 7166be9

Browse files
author
Matthew Vincent
committed
locking the ubuntu version to prevent issues with any latest images, compacting the RUN commands
1 parent b211865 commit 7166be9

1 file changed

Lines changed: 18 additions & 11 deletions

File tree

Dockerfile

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
FROM ubuntu:latest
2-
MAINTAINER Montala Ltd
1+
FROM ubuntu:24.04
2+
3+
LABEL org.opencontainers.image.authors="Montala Ltd"
4+
35
ENV DEBIAN_FRONTEND="noninteractive"
6+
47
RUN apt-get update && apt-get install -y \
58
nano \
69
imagemagick \
@@ -28,11 +31,13 @@ RUN apt-get update && apt-get install -y \
2831
python3-opencv \
2932
python3 \
3033
python3-pip \
34+
&& apt-get clean \
3135
&& 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
3641

3742
RUN printf '<Directory /var/www/>\n\
3843
\tOptions FollowSymLinks\n\
@@ -42,9 +47,11 @@ RUN printf '<Directory /var/www/>\n\
4247
ADD cronjob /etc/cron.daily/resourcespace
4348

4449
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+
5057
CMD apachectl -D FOREGROUND

0 commit comments

Comments
 (0)