-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathDockerfile.debian
52 lines (41 loc) · 1.59 KB
/
Dockerfile.debian
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
ARG DEBIAN_VER=9
ARG REGISTRY=docker.io
ARG REPOSITORY=sudobmitch/base
FROM ${REGISTRY}/library/debian:${DEBIAN_VER}
# Include apt-install
COPY bin.debian/ /usr/bin/
RUN apt-install \
ca-certificates \
curl \
rsync
# Install wait-for-it.sh
RUN curl -sSL https://github.com/vishnubob/wait-for-it/raw/master/wait-for-it.sh >/usr/bin/wait-for-it.sh \
&& chmod 755 /usr/bin/wait-for-it.sh
# Install tini
ARG TINI_VERSION=v0.16.1
RUN curl -sSL https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini >/usr/bin/tini \
&& chmod 755 /usr/bin/tini
# Install gosu
ARG GOSU_VERSION=1.10
RUN dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
&& curl -sSL "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-${dpkgArch}" >/usr/bin/gosu \
&& chmod 755 /usr/bin/gosu \
&& gosu nobody true
# Include various scripts (entrypointd.sh, healthcheckd.sh, fix-perms)
COPY bin/ /usr/bin/
COPY healthcheck.d/ /etc/healthcheck.d/
COPY entrypoint.d/ /etc/entrypoint.d/
HEALTHCHECK CMD /usr/bin/healthcheckd.sh
ENTRYPOINT ["/usr/bin/entrypointd.sh"]
CMD ["/bin/bash"]
ARG IMAGE_VERSION=1.0.0
ARG REGISTRY=docker.io
ARG REPOSITORY=sudobmitch/base
LABEL \
org.label-schema.docker.cmd="docker run -it --rm ${REGISTRY}/${REPOSITORY}:debian" \
org.label-schema.description="Base image for debian" \
org.label-schema.name="${REGISTRY}/${REPOSITORY}:debian" \
org.label-schema.schema-version="1.0" \
org.label-schema.url="https://github.com/sudo-bmitch/docker-base" \
org.label-schema.vendor="Brandon Mitchell" \
org.label-schema.version="${IMAGE_VER}"