-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbase.Dockerfile
42 lines (34 loc) · 1015 Bytes
/
base.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
ARG DEBIAN_VERSION="stretch-20190228-slim"
FROM debian:${DEBIAN_VERSION}
ARG MAINTAINER
ARG PIPELINE_VERSION
LABEL maintainer="${MAINTAINER}"
LABEL version="${PIPELINE_VERSION}"
# Set these with empty defaults to avoid using unset variables in path adds
ENV PATH "${PATH:-}"
ENV INCLUDE "${INCLUDE:-}"
ENV CPATH "${CPATH:-}"
ENV LIBRARY_PATH "${LIBRARY_PATH:-}"
ENV LD_LIBRARY_PATH "${LD_LIBRARY_PATH:-}"
ENV LD_RUN_PATH "${LD_RUN_PATH:-}"
ENV LANG "C.UTF-8"
ENV LANGUAGE "C.UTF-8"
ENV LC_ALL "C.UTF-8"
ENV BUILD_DIR "/build"
ENV APT_REQUIREMENTS_FILE "${BUILD_DIR}/apt-requirements.txt"
COPY base.sh /build/base.sh
RUN set -eu \
&& DEBIAN_FRONTEND=noninteractive \
&& mkdir -p /usr/share/man/man1 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
bash \
curl \
gawk \
procps \
sed \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& touch "${APT_REQUIREMENTS_FILE}"
# Adding man folder prevents java install from panicking