diff --git a/sublime-text-3/Dockerfile b/sublime-text-3/Dockerfile index 4e05a4c..ece1afa 100644 --- a/sublime-text-3/Dockerfile +++ b/sublime-text-3/Dockerfile @@ -26,36 +26,33 @@ FROM debian:stretch LABEL maintainer "Christian Koep " -# Installing the libcanberra-gtk-module gets rid of a lot of annoying error messages. RUN apt-get update && apt-get -y install \ - locales \ - libcanberra-gtk-module \ + apt-transport-https \ ca-certificates \ curl \ - tar \ - bzip2 \ - libglib2.0-0 \ - libx11-6 \ - libcairo2 \ - libpango-1.0-0 \ - libpangocairo-1.0-0 \ - libgtk2.0-0 \ + gnupg \ + locales \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* -ENV SUBLIME_VERSION build_3126 - -RUN curl -sSL "https://download.sublimetext.com/sublime_text_3_${SUBLIME_VERSION}_x64.tar.bz2" -o /tmp/sublime.tar.bz2 \ - && mkdir -p /usr/src/sublime_text \ - && tar -xjf /tmp/sublime.tar.bz2 -C /usr/src/sublime_text --strip-components 1 \ - && rm /tmp/sublime.tar.bz2* - # Generate system-wide UTF-8 locale # Sublime might nag about Ascii issue w/ Package Control otherwise RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \ locale-gen && \ echo "LANG=en_US.UTF-8" > /etc/locale.conf +# Add the sublime debian repo +RUN curl -sSL https://download.sublimetext.com/sublimehq-pub.gpg | apt-key add - +RUN echo "deb https://download.sublimetext.com/ apt/stable/" > /etc/apt/sources.list.d/sublime-text.list + +# Installing the libcanberra-gtk-module gets rid of a lot of annoying error messages. +RUN apt-get update && apt-get -y install \ + libcanberra-gtk-module \ + sublime-text \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + + # In order to prevent writing as root:root in Sublime, we have to run the Sublime Text container # as the user that creates the container. Normally we do this by passing $UID. # But just passing $UID along isn't enough - Sublime has to be started by a user that exists.