FROM prominfra/infra:master
LABEL maintainer="The Prometheus Authors <<EMAIL>>"

WORKDIR /prombench
ENV INFRA_CMD infra

# Copy Makefiles and manifests
# Need 'cd' since ghActions ignores WORKDIR
# Need 'eval' to prevent bash keywords be run as commands
COPY ./ ./
RUN echo -e '#!/bin/sh\ncd /prombench\neval "$@"' >/bin/docker_entrypoint
RUN chmod u+x /bin/docker_entrypoint

ENTRYPOINT ["docker_entrypoint"]
