-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
85 lines (77 loc) · 1.61 KB
/
Dockerfile
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM debian:stable-slim
LABEL maintainer="Backplane BV <[email protected]>"
# one of the names under /usr/share/i18n/SUPPORTED (e.g. es_MX or nl_BE)
ENV LANG=en_US.UTF-8
# one oe of the names under /usr/share/i18n/charmaps (e.g. ISO-8859-16)
ARG CHARSET=UTF-8
ARG AG="apt-get -yq --no-install-recommends"
ARG DEBIAN_FRONTEND=noninteractive
RUN set -eux; \
$AG update; \
$AG upgrade; \
$AG install \
apt-transport-https \
busybox \
bzip2 \
ca-certificates \
curl \
fonts-droid-fallback \
fonts-hack \
fonts-inconsolata \
fonts-monoid \
fonts-roboto \
fonts-symbola \
git \
iproute2 \
iputils-ping \
less \
locales \
make \
mate-desktop-environment \
nano \
netbase \
netcat-openbsd \
sudo \
tigervnc-common \
tigervnc-standalone-server \
tigervnc-tools \
traceroute \
ttf-anonymous-pro \
unzip \
vim \
x11-xserver-utils \
; \
$AG autoremove; \
$AG clean; \
rm -rf \
/var/cache/debconf/*-old \
/var/lib/apt/lists/* \
/var/lib/dpkg/*-old \
; \
busybox --install;
RUN set -eux; \
printf '%s %s\n' "$LANG" "$CHARSET" | tee /etc/locale.gen; \
locale-gen; \
/usr/sbin/update-locale;
RUN set -eux; \
useradd \
--no-log-init \
--base-dir / \
--home-dir "/work" \
--create-home \
--no-user-group \
--groups sudo,adm \
--shell "/bin/bash" \
--uid "65532" \
user \
; \
passwd \
--delete \
--expire \
user \
;
# do this before dropping privs
COPY ["entrypoint.sh", "/"]
USER user
WORKDIR /work
ENTRYPOINT ["/entrypoint.sh"]