forked from janeczku/docker-dropbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
FROM debian:jessie | ||
MAINTAINER Jan Broer <[email protected]> | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
# Following 'How do I add or remove Dropbox from my Linux repository?' - https://www.dropbox.com/en/help/246 | ||
RUN echo 'deb http://linux.dropbox.com/debian jessie main' > /etc/apt/sources.list.d/dropbox.list \ | ||
&& apt-key adv --keyserver pgp.mit.edu --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E \ | ||
&& apt-get -qqy update \ | ||
&& apt-get -qqy install locales locales-all \ | ||
# Note 'ca-certificates' dependency is required for 'dropbox start -i' to succeed | ||
&& apt-get -qqy install ca-certificates curl python-gpgme dropbox \ | ||
# Perform image clean up. | ||
&& apt-get -qqy autoclean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
# Create service account and set permissions. | ||
&& groupadd dropbox \ | ||
&& useradd -m -d /dbox -c "Dropbox Daemon Account" -s /usr/sbin/nologin -g dropbox dropbox | ||
&& useradd -m -d /dbox -c "Dropbox Daemon Account" -s /usr/sbin/nologin -g dropbox dropbox \ | ||
&& sed --in-place '/en_US.UTF-8/s/^# //' /etc/locale.gen | ||
|
||
# Dropbox is weird: it insists on downloading its binaries itself via 'dropbox | ||
# start -i'. So we switch to 'dropbox' user temporarily and let it do its thing. | ||
|