1 Star 0 Fork 0

gaork/dockerfiles

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Dockerfile 1.34 KB
Copy Edit Raw Blame History
gaork authored 4 years ago . commit
FROM centos:7
MAINTAINER gaork "testsroot@163.com>"
# -----------------------------------------------------------------------------
# 基本设置
# -----------------------------------------------------------------------------
# --build-arg timezone=Asia/Shanghai
ARG timezone
# --build-arg group_user=www-data
ARG group_user
ENV LANG=zh_CN.UTF-8 \
LANGUAGE=zh_CN:zh \
LC_ALL=zh_CN.UTF-8
# 环境变量设置
ENV CENTOS_VERSION=7 \
TIMEZONE=${timezone:-"Asia/Shanghai"} \
GROUP_USER=${group_user:-"www-data"}
# 添加用户组、用户
RUN groupadd ${GROUP_USER} && useradd -g ${GROUP_USER} ${GROUP_USER}
# -----------------------------------------------------------------------------
# Configure, timezone
# -----------------------------------------------------------------------------
RUN ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && echo "${TIMEZONE}" > /etc/timezone
# -----------------------------------------------------------------------------
# 安装 中文
# -----------------------------------------------------------------------------
RUN sed -i 's/usr\/bin\/python/usr\/bin\/python2.7/g' /usr/bin/yum
RUN sed -i 's/usr\/bin\/python/usr\/bin\/python2.7/g' /usr/libexec/urlgrabber-ext-down
ENV LANG=zh_CN.UTF-8 \
LANGUAGE=zh_CN:zh \
LC_ALL=zh_CN.UTF-8
RUN localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
CMD ["/bin/bash"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/gaork/dockerfiles.git
git@gitee.com:gaork/dockerfiles.git
gaork
dockerfiles
dockerfiles
master

Search