-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Expand file tree
/
Copy pathDockerfile
More file actions
65 lines (58 loc) · 1.6 KB
/
Copy pathDockerfile
File metadata and controls
65 lines (58 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# 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:bullseye-slim
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
# 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'
# Install dependencies
RUN apt-get update && apt-get install -y \
atom \
git \
gconf2 \
gconf-service \
gvfs-bin \
libasound2 \
libcap2 \
libdrm2 \
libgbm1 \
libgconf-2-4 \
libgtk2.0-0 \
libnotify4 \
libnss3 \
libxcb-dri3-0 \
libxkbfile1 \
libxss1 \
libxtst6 \
libx11-xcb-dev \
xdg-utils \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Autorun atom
ENTRYPOINT [ "atom", "--no-sandbox", "--foreground" ]