1 Star 0 Fork 0

TCATools/cloc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 875 Bytes
一键复制 编辑 原始数据 按行查看 历史
Gustavo L. de M. Chaves 提交于 2021-09-23 02:50 +08:00 . Install ca-certificates package
# Dockerfile by Sébastien HOUZÉ, https://github.com/shouze
FROM perl:slim AS base
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
git \
unzip \
&& rm -rf /var/lib/apt/lists/*
#Install all dependencies
RUN cpanm \
Algorithm::Diff \
Digest::MD5 \
Parallel::ForkManager \
Regexp::Common \
&& rm -rf $HOME/.cpanm
#Copy source code
COPY cloc /usr/src/
####################
FROM base AS test
#Copy test code
COPY .git /usr/src/.git
COPY tests /usr/src/tests
COPY Unix /usr/src/Unix
WORKDIR /usr/src/Unix
#Checkout of cloc_submodule_test for t/02_git.t tests
RUN git clone https://github.com/AlDanial/cloc_submodule_test.git
#Run tests
RUN make test
####################
From base AS final
WORKDIR /tmp
ENTRYPOINT ["/usr/src/cloc"]
CMD ["--help"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/TCATools/cloc.git
git@gitee.com:TCATools/cloc.git
TCATools
cloc
cloc
master

搜索帮助