dockerfiles/atom/Dockerfile

63 lines
1.5 KiB
Docker
Raw Normal View History

# DESCRIPTION: Create the atom editor in a container
# AUTHOR: Jessie Frazelle <jess@linux.com>
2014-10-19 06:40:41 +02:00
# 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.
2014-10-19 06:40:41 +02:00
# USAGE:
# # Download atom Dockerfile
# wget https://raw.githubusercontent.com/jessfraz/dockerfiles/master/atom/Dockerfile
2014-10-19 06:40:41 +02:00
#
# # Build atom image
# docker build -t atom .
2014-10-19 06:40:41 +02:00
#
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
# -e DISPLAY=unix$DISPLAY atom
2014-10-19 06:40:41 +02:00
#
# Base docker image
FROM debian:bullseye-slim
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
2014-10-19 06:40:41 +02:00
# Tell debconf to run in non-interactive mode
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
gnupg \
wget \
--no-install-recommends
# Add the atom debian repo
RUN wget -qO- https://packagecloud.io/AtomEditor/atom/gpgkey | apt-key add -
RUN sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
2014-10-19 06:40:41 +02:00
# Install dependencies
RUN apt-get update && apt-get install -y \
atom \
git \
gconf2 \
gconf-service \
gvfs-bin \
libasound2 \
2016-09-20 16:38:46 +02:00
libcap2 \
libgconf-2-4 \
libgtk2.0-0 \
libnotify4 \
libnss3 \
libxkbfile1 \
libxss1 \
libxtst6 \
libx11-xcb-dev \
xdg-utils \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
2014-10-19 06:40:41 +02:00
# Autorun atom
ENTRYPOINT [ "atom", "--foreground" ]