debian-cis/shellcheck/Dockerfile.shellcheck
Charles Herlin 176fb96fa4 FEAT: automate shellcheck test with docker
IMP: search for all .sh files to shellcheck
If no file is passed as argument, shellchek will be run on all
.sh files

Fix dockerfile location and expand full shellcheck options
2019-01-17 12:39:15 +01:00

14 lines
334 B
Docker

FROM ubuntu:latest
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y shellcheck
COPY . /opt/debian-cis/
COPY debian/default /etc/default/cis-hardening
RUN sed -i 's#cis-hardening#debian-cis#' /etc/default/cis-hardening
WORKDIR /opt/debian-cis
ENTRYPOINT ["/opt/debian-cis/shellcheck/launch_shellcheck.sh"]