mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +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
|
FROM debian:stretch
|
||||||
LABEL maintainer "Christian Koep <christiankoep@gmail.com>"
|
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 \
|
RUN apt-get update && apt-get -y install \
|
||||||
locales \
|
apt-transport-https \
|
||||||
libcanberra-gtk-module \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
tar \
|
gnupg \
|
||||||
bzip2 \
|
locales \
|
||||||
libglib2.0-0 \
|
|
||||||
libx11-6 \
|
|
||||||
libcairo2 \
|
|
||||||
libpango-1.0-0 \
|
|
||||||
libpangocairo-1.0-0 \
|
|
||||||
libgtk2.0-0 \
|
|
||||||
--no-install-recommends \
|
--no-install-recommends \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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
|
# Generate system-wide UTF-8 locale
|
||||||
# Sublime might nag about Ascii issue w/ Package Control otherwise
|
# Sublime might nag about Ascii issue w/ Package Control otherwise
|
||||||
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
|
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
|
||||||
locale-gen && \
|
locale-gen && \
|
||||||
echo "LANG=en_US.UTF-8" > /etc/locale.conf
|
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
|
# 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.
|
# 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.
|
# 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