blob: c2bea54afc054eb48123de4909b47927667bb25c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
FROM rdeavila/docker-shellcheck:latest
# Get shellcheck binary
RUN mkdir -p /package/bin/
RUN cp ~/.cabal/bin/shellcheck /package/bin/
# Get shared libraries
RUN mkdir -p /package/lib/
RUN ldd ~/.cabal/bin/shellcheck | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' /package/lib/
# Copy shellcheck package out to mounted directory
CMD ["cp", "-avr", "/package", "/mnt/"]
|