mirror of
https://github.com/linuxserver/docker-shellcheck.git
synced 2026-02-20 00:56:23 +08:00
fix continuation lines
This commit is contained in:
parent
b82b59e8a1
commit
788d31a33e
11
Dockerfile
11
Dockerfile
@ -6,8 +6,8 @@ ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
|
||||
# install build packages
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
binutils-gold \
|
||||
ghc \
|
||||
@ -17,22 +17,19 @@ RUN \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
--repository http://nl.alpinelinux.org/alpine/edge/community \
|
||||
cabal && \
|
||||
|
||||
# compile shellcheck
|
||||
echo "**** compile shellcheck ****" && \
|
||||
git clone https://github.com/koalaman/shellcheck /tmp/shellcheck && \
|
||||
cd /tmp/shellcheck && \
|
||||
cabal update && \
|
||||
cabal install && \
|
||||
|
||||
# install shellcheck
|
||||
echo "**** install shellcheck ****" && \
|
||||
cp /root/.cabal/bin/shellcheck /usr/local/bin/ && \
|
||||
ldd \
|
||||
/root/.cabal/bin/shellcheck | grep "=> /" \
|
||||
| awk '{print $3}' | xargs -I '{}' cp -v '{}' \
|
||||
/usr/local/lib/ && \
|
||||
ldconfig /usr/local/lib && \
|
||||
|
||||
# cleanup
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user