-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
26 lines (25 loc) · 979 Bytes
/
Dockerfile
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
FROM bats/bats:1.8.2@sha256:e83f0ac8b0f3e0369ddd740a543f1b9bc90ecb5c616450a7b9538c7f786f0ca2
RUN set -x \
#
# Install
# - coreutils: For GNU mktemp since busybox mktemp doesn't support --tmpdir.
&& apk add --update --no-cache \
# renovate: datasource=repology depName=alpine_3_12/coreutils versioning=loose
coreutils=="9.0-r2" \
#
# Install git to install extra
&& apk add --update --no-cache --virtual .bats-deps \
# renovate: datasource=repology depName=alpine_3_12/git versioning=loose
git=="2.34.8-r0" \
#
# Install extra bats dependencies
&& git clone -q -b 'v0.3.0' --single-branch --depth 1 \
https://github.com/ztombol/bats-assert /usr/lib/bats-assert \
&& git clone -q -b 'v0.2.0' --single-branch --depth 1 \
https://github.com/ztombol/bats-file /usr/lib/bats-file \
&& git clone -q -b 'v0.3.0' --single-branch --depth 1 \
https://github.com/ztombol/bats-support /usr/lib/bats-support \
#
# Clean
&& apk del .bats-deps \
;