-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (28 loc) · 733 Bytes
/
Copy pathDockerfile
File metadata and controls
34 lines (28 loc) · 733 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
FROM nicjo814/docker-baseimage-xenial-x
# Environment settings
ENV HOME="/config"
ENV APTLIST=" \
chromium-browser \
chromium-browser-l10n \
msttcorefonts"
# install packages
RUN \
apt-get update -q && \
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \
echo ttf-mscorefonts-installer msttcorefonts/present-mscorefonts-eula note | debconf-set-selections && \
apt-get install \
$APTLIST -qy && \
# change shell to bash for user abc
usermod -s /bin/bash abc && \
# cleanup
cd / && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*
# add some files
COPY root/ /
# ports and volumes
VOLUME /config