diff --git a/Dockerfile b/Dockerfile
index 60c43e9..b6eab61 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,12 +1,20 @@
-FROM ubuntu:24.04
+ARG ubuntu=24.04
+
+FROM ubuntu:${ubuntu}
LABEL org.opencontainers.image.authors="Montala Ltd"
ENV DEBIAN_FRONTEND="noninteractive"
-RUN apt-get update && apt-get install -y \
+ARG php=8.3
+
+ARG TARGETARCH
+
+RUN --mount=type=cache,id=ubuntu-${TARGETARCH},target=/var/lib/apt/lists,sharing=locked <\n\
-\tOptions FollowSymLinks\n\
-\n'\
->> /etc/apache2/sites-enabled/000-default.conf
+RUN bash <'
+ echo -e '\tOptions FollowSymLinks'
+ echo ''
+) >>/etc/apache2/sites-enabled/000-default.conf
+EOI
ADD cronjob /etc/cron.daily/resourcespace
WORKDIR /var/www/html
-RUN rm -f index.html \
- && svn co -q https://svn.resourcespace.com/svn/rs/releases/10.7 . \
- && mkdir -p filestore \
- && chmod 777 filestore \
- && chmod -R 777 include/
-
+RUN <