mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 12:23:35 +01:00
4463f27c94
Without libxss1 atom 1.12.x does not start at all. Without libxkbfile1 it starts, but throws an exception and cannot be used.
62 lines
1.5 KiB
Docker
62 lines
1.5 KiB
Docker
# DESCRIPTION: Create the atom editor in a container
|
|
# AUTHOR: Jessie Frazelle <jess@linux.com>
|
|
# COMMENTS:
|
|
# This file describes how to build the atom editor
|
|
# in a container with all dependencies installed.
|
|
# Note: atom is not a node-webkit app,
|
|
# found this out a little too late into this example
|
|
# it uses electron(https://github.com/atom/electron)
|
|
# Tested on Debian Jessie.
|
|
# USAGE:
|
|
# # Download atom Dockerfile
|
|
# wget https://raw.githubusercontent.com/jessfraz/dockerfiles/master/atom/Dockerfile
|
|
#
|
|
# # Build atom image
|
|
# docker build -t atom .
|
|
#
|
|
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
# -e DISPLAY=unix$DISPLAY atom
|
|
#
|
|
|
|
# Base docker image
|
|
FROM debian:stretch
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
|
|
|
# Install dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
git \
|
|
gconf2 \
|
|
gconf-service \
|
|
gvfs-bin \
|
|
libasound2 \
|
|
libcap2 \
|
|
libgconf-2-4 \
|
|
libgnome-keyring-dev \
|
|
libgtk2.0-0 \
|
|
libnotify4 \
|
|
libnss3 \
|
|
libxkbfile1 \
|
|
libxss1 \
|
|
libxtst6 \
|
|
xdg-utils \
|
|
--no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV ATOM_VERSION 1.12.5
|
|
|
|
# download the source
|
|
RUN buildDeps=' \
|
|
ca-certificates \
|
|
curl \
|
|
' \
|
|
&& set -x \
|
|
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& curl -sSL https://github.com/atom/atom/releases/download/v${ATOM_VERSION}/atom-amd64.deb -o /tmp/atom-amd64.deb \
|
|
&& dpkg -i /tmp/atom-amd64.deb \
|
|
&& rm -rf /tmp/*.deb \
|
|
&& apt-get purge -y --auto-remove $buildDeps
|
|
|
|
# Autorun atom
|
|
ENTRYPOINT [ "atom", "--foreground" ]
|