docker ubuntu 不选时区
时间:2018-09-14 14:01:36
收藏:0
阅读:1468
在用ubuntu:18.04基本镜像进行构建的时候。出现啦选择时区的地方,然后会卡住。
FROM ubuntu:18.04 #env 环境变量 ENV AUTHOR="xianyunyehe" PWD="." #复制源 COPY ${PWD}/sources.list /etc/apt/sources.list #容器启动执行的脚本程序 #CMD [ "" ] #定义挂载的卷 VOLUME [ "/tmp" ] #对外暴露的端口 EXPOSE 8080 #工作目录 构建的每层操作都在该目录下进行 WORKDIR /tmp #指定用户 USER root # 当以当前镜像为基础镜像,去构建下一级镜像的时候才会被执行 # #RUN mkdir /app #WORKDIR /app #ONBUILD COPY ./package.json /app #ONBUILD RUN [ "npm", "install" ] #执行命令 RUN buildDeps=‘gcc libc6-dev make‘ && apt-get update && apt-get install -y $buildDeps && apt-get install -y php && apt-get purge -y --auto-remove $buildDeps
Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located. 1. Africa 4. Australia 7. Atlantic 10. Pacific 13. Etc 2. America 5. Arctic 8. Europe 11. SystemV 3. Antarctica 6. Asia 9. Indian 12. US Geographic area:
可以通过配置环境变量,来跳过这个步骤
ENV DEBIAN_FRONTEND=noninteractive
评论(0)