"Fossies" - the Fresh Open Source Software Archive

Member "cloc-1.86/Dockerfile" (19 May 2020, 764 Bytes) of package /linux/privat/cloc-1.86.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Dockerfile by Sébastien HOUZÉ, https://github.com/shouze
    2 FROM perl:slim
    3 
    4 RUN apt-get update && apt-get install -y \
    5     unzip \
    6     git \
    7  && rm -rf /var/lib/apt/lists/*
    8 
    9 #Install all dependencies
   10 RUN perl -MCPAN -e 'install Algorithm::Diff'
   11 RUN perl -MCPAN -e 'install Regexp::Common'
   12 RUN perl -MCPAN -e 'install Digest::MD5'
   13 RUN perl -MCPAN -e 'install Parallel::ForkManager'
   14 
   15 #Copy source code
   16 COPY cloc /usr/src/
   17 COPY .git /usr/src/.git
   18 COPY tests /usr/src/tests
   19 COPY Unix /usr/src/Unix
   20 
   21 WORKDIR /usr/src/Unix
   22 
   23 #Checkout of cloc_submodule_test for t/02_git.t tests
   24 RUN git clone https://github.com/AlDanial/cloc_submodule_test.git
   25 
   26 #Run tests
   27 RUN make test
   28 
   29 #Cleanup of git folder
   30 RUN rm -rf .git
   31 
   32 WORKDIR /tmp
   33 
   34 ENTRYPOINT ["/usr/src/cloc"]
   35 CMD ["--help"]