mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
更新jenkins基础镜像
This commit is contained in:
parent
1973a64713
commit
f750ef080f
@ -1,9 +1,5 @@
|
||||
# Jenkins
|
||||
FROM openjdk:8-jdk-stretch
|
||||
|
||||
# 国内加速
|
||||
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
|
||||
COPY stretch.sources.list /etc/apt/sources.list
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/java:openjdk-8-jdk
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y git curl unzip vim wget ant \
|
||||
|
@ -1,8 +0,0 @@
|
||||
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
|
||||
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
|
||||
deb http://mirrors.aliyun.com/debian-security stretch/updates main
|
||||
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
|
||||
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
|
||||
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
|
||||
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
|
||||
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
|
@ -16,10 +16,11 @@ RUN sed -i 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen
|
||||
RUN locale && locale-gen "zh_CN.UTF-8"
|
||||
|
||||
# Set environment variables.
|
||||
ENV LANG=zh_CN.UTF-8\
|
||||
LANGUAGE=zh_CN:zh:en_US:en\
|
||||
LC_ALL=zh_CN.UTF-8\
|
||||
TZ=Asia/Shanghai\
|
||||
ENV LANG=zh_CN.UTF-8 \
|
||||
LANGUAGE=zh_CN:zh:en_US:en \
|
||||
LC_ALL=zh_CN.UTF-8 \
|
||||
TZ=Asia/Shanghai \
|
||||
DEBIAN_FRONTEND="noninteractive" \
|
||||
TERM=xterm
|
||||
|
||||
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
|
||||
|
Loading…
Reference in New Issue
Block a user