-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (40 loc) · 1.08 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# All the tools required to run the tests, lint and coverage Bash scripts
# coverage
FROM kcov/kcov
# test
RUN set -eux \
&& apt update \
&& apt install -y git \
&& git clone https://github.com/bats-core/bats-core.git \
&& cd bats-core \
&& ./install.sh /usr/local \
&& cd .. \
&& rm -rf bats-core \
&& apt remove -y git \
&& apt autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# minify
RUN set -eux \
&& apt update \
&& apt install -y perl \
&& rm -rf /var/lib/apt/lists/*
# docs
RUN set -eux \
&& apt update \
&& apt install -y gawk \
&& rm -rf /var/lib/apt/lists/*
# lint
COPY --from=koalaman/shellcheck:stable /bin/shellcheck /usr/local/bin/shellcheck
# tools
COPY --from=ghcr.io/jqlang/jq:latest /jq /usr/local/bin/jq
RUN set -eux \
&& apt update \
&& apt install -y gettext-base \
&& rm -rf /var/lib/apt/lists/*
# argsh itself
COPY .bin/obfus /usr/local/bin/obfus
COPY .bin/shdoc /usr/local/bin/shdoc
COPY ./argsh.min.sh /usr/local/bin/argsh
# docker
COPY ./.docker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT [ "docker-entrypoint.sh" ]