blob: 3350e389f3476d360a508240b77eefc69c7ecaa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
FROM gcr.io/google-containers/pause:latest
FROM gcr.io/google_containers/echoserver:1.0
FROM registry.gitlab.com/grumps/grumpy-containers/base:${BASE_VER}
ENV DEBIAN_FRONTEND=noninteractive
RUN useradd -s /usr/sbin/nologin \
--create-home \
--home-dir /opt/app \
app
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y curl dnsutils jq vim kubernetes-client tmux ldap-utils ncat nmap hping3 python3-minimal unattended-upgrades \
&& unattended-upgrades
COPY --from=0 /pause /usr/local/bin/pause
COPY --from=1 echoserver.py /usr/local/bin/echoserver
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
USER app
WORKDIR /opt/app
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["pause"]
|