-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (23 loc) · 697 Bytes
/
Dockerfile
File metadata and controls
43 lines (23 loc) · 697 Bytes
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
FROM ubuntu:17.10
LABEL maintainer="Benny Li <dev@benny-li.de>"
# Build Arguments
ARG ATOM_VERSION=1.23.3
# User Management to not run as root
RUN useradd --create-home dev
# Install dependencies
RUN apt-get update && \
apt-get install --yes \
wget \
libxss1 libasound2 libxkbfile1
# Install Atom Text Editor
RUN wget --output-document=/tmp/atom.deb https://github.com/atom/atom/releases/download/v${ATOM_VERSION}/atom-amd64.deb && \
apt install --yes /tmp/atom.deb
# Install Atom packages (... as the user)
USER dev
RUN apm install language-docker
# Cleanup Image
USER root
RUN apt-get autoremove && \
apt-get clean && \
apt-get autoclean
USER dev