git-secret/vendor/bats-core/Dockerfile

24 lines
648 B
Docker
Raw Normal View History

ARG bashver=latest
FROM bash:${bashver}
2022-01-17 13:58:05 +00:00
ARG TINI_VERSION=v0.19.0
ARG TARGETPLATFORM
COPY ./docker /tmp/docker
# default to amd64 when not running in buildx environment that provides target platform
RUN /tmp/docker/install_tini.sh "${TARGETPLATFORM-linux/amd64}"
2021-05-03 12:43:04 +00:00
# Install parallel and accept the citation notice (we aren't using this in a
# context where it make sense to cite GNU Parallel).
RUN apk add --no-cache parallel ncurses && \
mkdir -p ~/.parallel && touch ~/.parallel/will-cite
2021-05-03 12:43:04 +00:00
RUN ln -s /opt/bats/bin/bats /usr/local/bin/bats
COPY . /opt/bats/
2022-01-17 13:58:05 +00:00
RUN mkdir -p /code
2021-05-03 12:43:04 +00:00
WORKDIR /code/
2022-01-17 13:58:05 +00:00
ENTRYPOINT ["/tini", "--", "bash", "bats"]