mirror of
https://github.com/resourcespace/docker.git
synced 2025-10-07 01:54:28 +00:00
locking the ubuntu version to prevent issues with any latest images, compacting the RUN commands
This commit is contained in:
29
Dockerfile
29
Dockerfile
@@ -1,6 +1,9 @@
|
||||
FROM ubuntu:latest
|
||||
MAINTAINER Montala Ltd
|
||||
FROM ubuntu:24.04
|
||||
|
||||
LABEL org.opencontainers.image.authors="Montala Ltd"
|
||||
|
||||
ENV DEBIAN_FRONTEND="noninteractive"
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
nano \
|
||||
imagemagick \
|
||||
@@ -28,11 +31,13 @@ RUN apt-get update && apt-get install -y \
|
||||
python3-opencv \
|
||||
python3 \
|
||||
python3-pip \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN sed -i -e "s/upload_max_filesize\s*=\s*2M/upload_max_filesize = 100M/g" /etc/php/8.3/apache2/php.ini
|
||||
RUN sed -i -e "s/post_max_size\s*=\s*8M/post_max_size = 100M/g" /etc/php/8.3/apache2/php.ini
|
||||
RUN sed -i -e "s/max_execution_time\s*=\s*30/max_execution_time = 300/g" /etc/php/8.3/apache2/php.ini
|
||||
RUN sed -i -e "s/memory_limit\s*=\s*128M/memory_limit = 1G/g" /etc/php/8.3/apache2/php.ini
|
||||
|
||||
RUN sed -i -e "s/upload_max_filesize\s*=\s*2M/upload_max_filesize = 100M/g" /etc/php/8.3/apache2/php.ini \
|
||||
&& sed -i -e "s/post_max_size\s*=\s*8M/post_max_size = 100M/g" /etc/php/8.3/apache2/php.ini \
|
||||
&& sed -i -e "s/max_execution_time\s*=\s*30/max_execution_time = 300/g" /etc/php/8.3/apache2/php.ini \
|
||||
&& sed -i -e "s/memory_limit\s*=\s*128M/memory_limit = 1G/g" /etc/php/8.3/apache2/php.ini
|
||||
|
||||
RUN printf '<Directory /var/www/>\n\
|
||||
\tOptions FollowSymLinks\n\
|
||||
@@ -42,9 +47,11 @@ RUN printf '<Directory /var/www/>\n\
|
||||
ADD cronjob /etc/cron.daily/resourcespace
|
||||
|
||||
WORKDIR /var/www/html
|
||||
RUN rm index.html
|
||||
RUN svn co -q https://svn.resourcespace.com/svn/rs/releases/10.5 .
|
||||
RUN mkdir filestore
|
||||
RUN chmod 777 filestore
|
||||
RUN chmod -R 777 include/
|
||||
|
||||
RUN rm -f index.html \
|
||||
&& svn co -q https://svn.resourcespace.com/svn/rs/releases/10.5 . \
|
||||
&& mkdir -p filestore \
|
||||
&& chmod 777 filestore \
|
||||
&& chmod -R 777 include/
|
||||
|
||||
CMD apachectl -D FOREGROUND
|
||||
|
Reference in New Issue
Block a user