From 039a3245ee156290359ac5e4f09d966ea5ada21e Mon Sep 17 00:00:00 2001 From: Andreia Ocanoaia Date: Thu, 26 Feb 2026 13:07:18 +0200 Subject: [PATCH 1/2] Update Dockerfile base image to Ubuntu:22.04 `debian:buster` LTS has reached an end. `apt update` and `apt install` are failing because `apt` repositories are no longer available. This commit updates to an ubuntu image Signed-off-by: Andreia Ocanoaia --- dockerfile/dropbox.Dockerfile | 45 ++++++++++------------------------- 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/dockerfile/dropbox.Dockerfile b/dockerfile/dropbox.Dockerfile index ca2fc7a..cb7e79c 100644 --- a/dockerfile/dropbox.Dockerfile +++ b/dockerfile/dropbox.Dockerfile @@ -1,6 +1,6 @@ -# Based on Debian -FROM debian:buster +# Based on Ubuntu +FROM ubuntu:22.04 # Maintainer LABEL maintainer "Alexander Graf " @@ -21,13 +21,15 @@ LABEL org.label-schema.vcs-ref "${VCS_REF}" ARG DEBIAN_FRONTEND=noninteractive ARG DEBCONF_NONINTERACTIVE_SEEN=true -# Install prerequisites -RUN apt-get update \ - && apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl gnupg2 \ - software-properties-common gosu locales locales-all \ - libc6 libglapi-mesa libxdamage1 libxfixes3 libxcb-glx0 \ - libxcb-dri2-0 libxcb-dri3-0 libxcb-present0 libxcb-sync1 \ - libxshmfence1 libxxf86vm1 tzdata +RUN apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates \ + wget \ + libc6 \ + libstdc++6 \ + gosu \ + tzdata \ + python3 \ + && rm -rf /var/lib/apt/lists/* # Create user and group RUN mkdir -p /opt/dropbox /opt/dropbox/.dropbox /opt/dropbox/Dropbox \ @@ -49,29 +51,8 @@ WORKDIR /opt/dropbox/Dropbox # Not really required for --net=host EXPOSE 17500 -# https://help.dropbox.com/installs-integrations/desktop/linux-repository -RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E \ - && add-apt-repository 'deb http://linux.dropbox.com/debian buster main' \ - && apt-get update \ - && apt-get -qqy install python3-gpg dropbox \ - && apt-get -qqy autoclean \ - && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* - -# Dropbox insists on downloading its binaries itself via 'dropbox start -i' -RUN echo "y" | gosu dropbox dropbox start -i - -# Dropbox has the nasty tendency to update itself without asking. In the processs it fills the -# file system over time with rather large files written to /opt/dropbox/ and /tmp. -# -# https://bbs.archlinux.org/viewtopic.php?id=191001 -RUN mkdir -p /opt/dropbox/bin/ \ - && mv /opt/dropbox/.dropbox-dist/* /opt/dropbox/bin/ \ - && rm -rf /opt/dropbox/.dropbox-dist \ - && install -dm0 /opt/dropbox/.dropbox-dist \ - && chmod u-w /opt/dropbox/.dropbox-dist \ - && chown -R dropbox:dropbox /opt/dropbox \ - && chmod o-w /tmp \ - && chmod g-w /tmp +# Download and extract Dropbox daemon +RUN wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - # Create volumes VOLUME ["/opt/dropbox/.dropbox", "/opt/dropbox/Dropbox"] From e6a4b3b1f8cd2313e319017659c6886f621e6bfe Mon Sep 17 00:00:00 2001 From: Andreia Ocanoaia Date: Thu, 26 Feb 2026 14:39:04 +0200 Subject: [PATCH 2/2] Fix warnings in Dockerfile Fix warning related to obsolete/deprecated Dockerfile syntax. Signed-off-by: Andreia Ocanoaia --- dockerfile/dropbox.Dockerfile | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/dockerfile/dropbox.Dockerfile b/dockerfile/dropbox.Dockerfile index cb7e79c..25c01b3 100644 --- a/dockerfile/dropbox.Dockerfile +++ b/dockerfile/dropbox.Dockerfile @@ -3,19 +3,21 @@ FROM ubuntu:22.04 # Maintainer -LABEL maintainer "Alexander Graf " +LABEL maintainer="Alexander Graf " # Build arguments -ARG VCS_REF=master +ARG VCS_REF=main +ARG VERSION="" ARG BUILD_DATE="" # http://label-schema.org/rc1/ -LABEL org.label-schema.schema-version "1.0" -LABEL org.label-schema.name "Dropbox" -LABEL org.label-schema.build-date "${BUILD_DATE}" -LABEL org.label-schema.description "Standalone Dropbox client" -LABEL org.label-schema.vcs-url "https://github.com/otherguy/docker-dropbox" -LABEL org.label-schema.vcs-ref "${VCS_REF}" +LABEL org.label-schema.schema-version="1.0" +LABEL org.label-schema.name="Dropbox" +LABEL org.label-schema.version="${VERSION}" +LABEL org.label-schema.build-date="${BUILD_DATE}" +LABEL org.label-schema.description="Standalone Dropbox client" +LABEL org.label-schema.vcs-url="https://github.com/otherguy/docker-dropbox" +LABEL org.label-schema.vcs-ref="${VCS_REF}" # Required to prevent warnings ARG DEBIAN_FRONTEND=noninteractive @@ -32,21 +34,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* # Create user and group -RUN mkdir -p /opt/dropbox /opt/dropbox/.dropbox /opt/dropbox/Dropbox \ +RUN mkdir -p /opt/dropbox \ && useradd --home-dir /opt/dropbox --comment "Dropbox Daemon Account" --user-group --shell /usr/sbin/nologin dropbox \ && chown -R dropbox:dropbox /opt/dropbox # Set language -ENV LANG "en_US.UTF-8" -ENV LANGUAGE "en_US.UTF-8" -ENV LC_ALL "en_US.UTF-8" - -# Generate locales -RUN sed --in-place '/en_US.UTF-8/s/^# //' /etc/locale.gen \ - && locale-gen +ENV LANG="C.UTF-8" +ENV LC_ALL="C.UTF-8" # Change working directory -WORKDIR /opt/dropbox/Dropbox +WORKDIR /opt/dropbox # Not really required for --net=host EXPOSE 17500