mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-02 03:48:15 +08:00
更新jenkins基础镜像
This commit is contained in:
parent
1973a64713
commit
f750ef080f
@ -1,9 +1,5 @@
|
|||||||
# Jenkins
|
# Jenkins
|
||||||
FROM openjdk:8-jdk-stretch
|
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/java:openjdk-8-jdk
|
||||||
|
|
||||||
# 国内加速
|
|
||||||
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
|
|
||||||
COPY stretch.sources.list /etc/apt/sources.list
|
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y git curl unzip vim wget ant \
|
&& 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"
|
RUN locale && locale-gen "zh_CN.UTF-8"
|
||||||
|
|
||||||
# Set environment variables.
|
# Set environment variables.
|
||||||
ENV LANG=zh_CN.UTF-8\
|
ENV LANG=zh_CN.UTF-8 \
|
||||||
LANGUAGE=zh_CN:zh:en_US:en\
|
LANGUAGE=zh_CN:zh:en_US:en \
|
||||||
LC_ALL=zh_CN.UTF-8\
|
LC_ALL=zh_CN.UTF-8 \
|
||||||
TZ=Asia/Shanghai\
|
TZ=Asia/Shanghai \
|
||||||
|
DEBIAN_FRONTEND="noninteractive" \
|
||||||
TERM=xterm
|
TERM=xterm
|
||||||
|
|
||||||
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
|
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
|
||||||
|
Loading…
Reference in New Issue
Block a user