1 Star 0 Fork 4

马威/lifsea-assembler

forked from anolis/lifsea-assembler 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
Jonathan Lebon 提交于 2021-02-04 14:01 . Dockerfile: tickle Quay.io caching
FROM registry.fedoraproject.org/fedora:33
WORKDIR /root/containerbuild
# We split into multiple steps here so that local dev workflows which involve
# rebuilding the container can leverage cached layers better.
# Only need a few of our scripts for the first few steps
COPY ./src/print-dependencies.sh ./src/deps*.txt ./src/vmdeps*.txt ./src/build-deps.txt /root/containerbuild/src/
COPY ./build.sh /root/containerbuild/
RUN ./build.sh configure_yum_repos # nocache 20210204
RUN ./build.sh install_rpms
# Ok copy in the rest of them for the next few steps
COPY ./ /root/containerbuild/
RUN ./build.sh write_archive_info
RUN ./build.sh make_and_makeinstall
RUN ./build.sh configure_user
RUN make check
RUN make unittest
RUN make clean
# clean up scripts (it will get cached in layers, but oh well)
WORKDIR /srv/
RUN chown builder: /srv
RUN rm -rf /root/containerbuild
# allow writing to /etc/passwd from arbitrary UID
# https://docs.openshift.com/container-platform/3.10/creating_images/guidelines.html
RUN chmod g=u /etc/passwd
# run as `builder` user
USER builder
ENTRYPOINT ["/usr/bin/dumb-init", "/usr/bin/coreos-assembler"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/movie0125/lifsea-assembler.git
git@gitee.com:movie0125/lifsea-assembler.git
movie0125
lifsea-assembler
lifsea-assembler
master

搜索帮助