mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
update sublime to use the repo
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
909f65c6a7
commit
e4aa53a2bb
|
@ -26,36 +26,33 @@
|
|||
FROM debian:stretch
|
||||
LABEL maintainer "Christian Koep <christiankoep@gmail.com>"
|
||||
|
||||
# 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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user