Skip to content

Commit 039a324

Browse files
committed
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 <andreia.ocanoaia@gmail.com>
1 parent 3e01a34 commit 039a324

1 file changed

Lines changed: 13 additions & 32 deletions

File tree

dockerfile/dropbox.Dockerfile

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
# Based on Debian
3-
FROM debian:buster
2+
# Based on Ubuntu
3+
FROM ubuntu:22.04
44

55
# Maintainer
66
LABEL maintainer "Alexander Graf <alex@otherguy.io>"
@@ -21,13 +21,15 @@ LABEL org.label-schema.vcs-ref "${VCS_REF}"
2121
ARG DEBIAN_FRONTEND=noninteractive
2222
ARG DEBCONF_NONINTERACTIVE_SEEN=true
2323

24-
# Install prerequisites
25-
RUN apt-get update \
26-
&& apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl gnupg2 \
27-
software-properties-common gosu locales locales-all \
28-
libc6 libglapi-mesa libxdamage1 libxfixes3 libxcb-glx0 \
29-
libxcb-dri2-0 libxcb-dri3-0 libxcb-present0 libxcb-sync1 \
30-
libxshmfence1 libxxf86vm1 tzdata
24+
RUN apt-get update && apt-get install -y --no-install-recommends \
25+
ca-certificates \
26+
wget \
27+
libc6 \
28+
libstdc++6 \
29+
gosu \
30+
tzdata \
31+
python3 \
32+
&& rm -rf /var/lib/apt/lists/*
3133

3234
# Create user and group
3335
RUN mkdir -p /opt/dropbox /opt/dropbox/.dropbox /opt/dropbox/Dropbox \
@@ -49,29 +51,8 @@ WORKDIR /opt/dropbox/Dropbox
4951
# Not really required for --net=host
5052
EXPOSE 17500
5153

52-
# https://help.dropbox.com/installs-integrations/desktop/linux-repository
53-
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E \
54-
&& add-apt-repository 'deb http://linux.dropbox.com/debian buster main' \
55-
&& apt-get update \
56-
&& apt-get -qqy install python3-gpg dropbox \
57-
&& apt-get -qqy autoclean \
58-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
59-
60-
# Dropbox insists on downloading its binaries itself via 'dropbox start -i'
61-
RUN echo "y" | gosu dropbox dropbox start -i
62-
63-
# Dropbox has the nasty tendency to update itself without asking. In the processs it fills the
64-
# file system over time with rather large files written to /opt/dropbox/ and /tmp.
65-
#
66-
# https://bbs.archlinux.org/viewtopic.php?id=191001
67-
RUN mkdir -p /opt/dropbox/bin/ \
68-
&& mv /opt/dropbox/.dropbox-dist/* /opt/dropbox/bin/ \
69-
&& rm -rf /opt/dropbox/.dropbox-dist \
70-
&& install -dm0 /opt/dropbox/.dropbox-dist \
71-
&& chmod u-w /opt/dropbox/.dropbox-dist \
72-
&& chown -R dropbox:dropbox /opt/dropbox \
73-
&& chmod o-w /tmp \
74-
&& chmod g-w /tmp
54+
# Download and extract Dropbox daemon
55+
RUN wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
7556

7657
# Create volumes
7758
VOLUME ["/opt/dropbox/.dropbox", "/opt/dropbox/Dropbox"]

0 commit comments

Comments
 (0)