Docker server always need updating after container re-build

Is there a way to keep owncloud from always wanting to update after a fresh install?

When I run this docker file and open owncloud in the browser I need to update (click update button and wait) whenever I re-build the docker container (it’s using the host db and files):

FROM ubuntu:latest

ENV DEBIAN_FRONTEND=noninteractive

RUN apt update
RUN apt install -y php libapache2-mod-php apache2
RUN apt install -y smbclient redis-server unzip openssl
RUN apt install -y php-mysql php-mbstring php-gettext php-intl php-redis php-imagick php-igbinary php-gmp php-curl php-gd php-zip php-imap php-ldap php-bz2 php-phpseclib

# sets timezone for tzdata package
RUN ln -fs /usr/share/zoneinfo/Europe/Oslo /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata

RUN a2enmod rewrite
RUN a2enmod headers
RUN a2enmod env
RUN a2enmod dir
RUN a2enmod mime
RUN a2enmod lbmethod_byrequests

ADD owncloud-10.1.1.tar.bz2 /var/www/
ADD owncloud.conf /etc/apache2/conf-available/
ADD config.php /var/www/owncloud/config/
RUN chown -R www-data:www-data /var/www/owncloud/

RUN a2enconf owncloud

RUN echo 'ServerName localhost' >> /etc/apache2/apache2.conf

CMD /usr/sbin/apache2ctl -D FOREGROUND

PS: I needed to create my own docker image because official docker image doesn’t work on 32bit :frowning:

Hey,

maybe this is the culprit here? From what i know the “update status” of ownCloud is stored within the config.php and if you copy an older config.php into the container ownCloud probably tries to update itself again.