-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContainerfile.debian
More file actions
30 lines (22 loc) · 1006 Bytes
/
Containerfile.debian
File metadata and controls
30 lines (22 loc) · 1006 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
FROM docker.io/library/debian
ARG BUILD_LANG=""
ARG INSTALL_SCRIPT=""
ARG VERIFY_SCRIPT=""
LABEL maintainer="Michael Adam <obnox@samba.org>"
LABEL org.opencontainers.image.title="debian ${BUILD_LANG} Build Container"
LABEL org.opencontainers.image.description="debian Container for building ${BUILD_LANG} projects"
LABEL org.opencontainers.image.vendor="buildbox"
LABEL org.opencontainers.image.url="https://github.com/TheBuildBox/buildbox"
COPY "${VERIFY_SCRIPT}" /usr/local/bin/verify.sh
COPY common.sh /usr/local/bin/common.sh
RUN chmod +x /usr/local/bin/verify.sh
COPY "${INSTALL_SCRIPT}" /usr/local/bin/install-packages.sh
RUN chmod +x /usr/local/bin/install-packages.sh
# Set a sane PATH during installation:
ENV PATH="/usr/local/bin:/usr/bin:/bin:/sbin:/usr/local/sbin:/usr/sbin"
# install and verify in one ATOMIC STEP:
RUN true && \
/usr/local/bin/install-packages.sh && \
echo "Verifying binaries before layer commit..." && \
/usr/local/bin/verify.sh && \
echo "your buildbox is ready."