-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (38 loc) · 888 Bytes
/
Dockerfile
File metadata and controls
44 lines (38 loc) · 888 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
44
ARG tag=12.13
################################## Base Layer ##################################
FROM debian:${tag}
SHELL ["/bin/bash", "-Eeuo", "pipefail", "-c"]
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
COPY src/rootfs /
### Install helper requirements
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update \
&& apt-get install -y --no-install-recommends \
locales \
&& locale-gen \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
gnupg \
unzip \
wget \
xz-utils \
zsh \
&& /usr/libexec/kloudkit/apt-cleanup
### Add docker group and application user
RUN groupadd \
--gid 990 \
docker \
&& adduser \
--disabled-password \
--no-create-home \
--gecos '' \
--shell /usr/bin/zsh \
--uid 1000 \
kloud \
&& usermod \
--append \
--groups docker \
kloud