Skip to content
Snippets Groups Projects
Commit ead4e208 authored by ale's avatar ale
Browse files

Simplify build

parent ff522484
No related branches found
No related tags found
No related merge requests found
Pipeline #56757 passed
FROM debian:stable-slim FROM debian:stable-slim
COPY build.sh /tmp/build.sh RUN apt-get -q update && \
env DEBIAN_FRONTEND=noninteractive apt-get -y install prometheus && \
RUN /tmp/build.sh && rm /tmp/build.sh apt-get clean && \
rm -fr /var/lib/apt/lists/*
ENTRYPOINT ["/usr/bin/prometheus"] ENTRYPOINT ["/usr/bin/prometheus"]
#!/bin/sh
#
# Install script for chaperone inside a Docker container.
#
# Packages required to serve the website and run the services.
PACKAGES="prometheus"
# The default bitnami/minideb image defines an 'install_packages'
# command which is just a convenient helper. Define our own in
# case we are using some other Debian image.
if [ "x$(which install_packages)" = "x" ]; then
install_packages() {
env DEBIAN_FRONTEND=noninteractive apt-get install -qy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --no-install-recommends "$@"
}
fi
die() {
echo "ERROR: $*" >&2
exit 1
}
set -x
apt-get -q update
# Install required packages
install_packages ${PACKAGES} \
|| die "could not install packages"
# Remove packages used for installation.
#apt-get remove -y --purge ${BUILD_PACKAGES}
apt-get autoremove -y
apt-get clean
rm -fr /var/lib/apt/lists/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment