mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 12:23:35 +01:00
update atom editor install
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
41e64d63b5
commit
a68d983fba
|
@ -20,26 +20,32 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# Base docker image
|
# Base docker image
|
||||||
FROM node
|
FROM jess/chromium
|
||||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
ca-certificates \
|
||||||
|
curl \
|
||||||
|
gconf2 \
|
||||||
|
gconf-service \
|
||||||
|
git \
|
||||||
|
gvfs-bin \
|
||||||
libasound2 \
|
libasound2 \
|
||||||
libgconf-2-4 \
|
libgconf-2-4 \
|
||||||
libgnome-keyring-dev \
|
libgnome-keyring-dev \
|
||||||
libgnome-keyring-dev \
|
|
||||||
libgtk2.0-0 \
|
libgtk2.0-0 \
|
||||||
|
libnotify4 \
|
||||||
libnss3 \
|
libnss3 \
|
||||||
libxtst6 && \
|
libxtst6 \
|
||||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
--no-install-recommends \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /src
|
ENV ATOM_VERSION 1.0.19
|
||||||
|
|
||||||
RUN LATEST_TAG=`git ls-remote --tags https://github.com/atom/atom | sort -t '/' -k3 --version-sort | tail -n1 | cut -d'/' -f3` && \
|
RUN curl -sSL https://github.com/atom/atom/releases/download/v${ATOM_VERSION}/atom-amd64.deb -o /tmp/atom-amd64.deb \
|
||||||
git clone -b $LATEST_TAG https://github.com/atom/atom --depth 1 /src && \
|
&& dpkg -i /tmp/atom-amd64.deb \
|
||||||
script/build && script/grunt install && \
|
&& rm -rf /tmp
|
||||||
rm -fr /src
|
|
||||||
|
|
||||||
# Autorun atom
|
# Autorun atom
|
||||||
CMD /usr/local/bin/atom --foreground --log-file /var/log/atom.log && tail -f /var/log/atom.log
|
ENTRYPOINT [ "atom", "--foreground" ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user