2 Star 2 Fork 0

wdliming/safeclib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile-centos 827 Bytes
一键复制 编辑 原始数据 按行查看 历史
Reini Urban 提交于 2020-08-29 12:17 . travis: BE via docker
# Docker >= 17.05.0-ce allows using build-time args (ARG) in FROM (#31352).
# https://github.com/moby/moby/releases/tag/v17.05.0-ce
ARG BASE_IMAGE=centos
FROM ${BASE_IMAGE}
# Test with non-root user.
ENV TEST_USER tester
ENV WORK_DIR "/work"
RUN uname -a
RUN yum -y update
RUN yum -y install epel-release
RUN yum -y install \
--setopt=deltarpm=0 \
--setopt=install_weak_deps=false \
--setopt=tsflags=nodocs \
file \
gcc \
git \
make \
redhat-rpm-config \
sudo \
automake autoconf libtool perl-Text-Diff pkgconf-pkg-config
# Create test user and the environment
RUN useradd "${TEST_USER}"
WORKDIR "${WORK_DIR}"
COPY . .
RUN chown -R "${TEST_USER}:${TEST_USER}" "${WORK_DIR}"
# Enable sudo without password for convenience.
RUN echo "${TEST_USER} ALL = NOPASSWD: ALL" >> /etc/sudoers
USER "${TEST_USER}"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/liming2019/safeclib.git
git@gitee.com:liming2019/safeclib.git
liming2019
safeclib
safeclib
master

搜索帮助