This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
ARG arch_name=amd64 | |
# 设置一些环境变量 | |
ENV TZ=Asia/Shanghai \ | |
LANG=en_US.utf8 \ | |
LANGUAGE=en_US.UTF-8 \ | |
LC_ALL=en_US.UTF-8 \ | |
DEBIAN_FRONTEND=noninteractive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 解决ubuntu镜像构建时卡在选择时区界面的问题 | |
ENV TZ=Asia/Shanghai \ | |
LANG=en_US.utf8 \ | |
LANGUAGE=en_US.UTF-8 \ | |
DEBIAN_FRONTEND=noninteractive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 实验一利用Hadoop搭建服务器集群的基础环境Dockerfile | |
FROM ubuntu:20.04 | |
ARG arch_name=amd64 | |
# 1.备份源列表 | |
RUN cp /etc/apt/sources.list /etc/apt/sources.backup.list | |
# 2.把本目录下的sources.list中的镜像源添加到Docker中,下载速度起飞 | |
COPY sources.list /etc/apt/sources.list | |
# 3.更新源 | |
RUN apt-get update |