更新node镜像

This commit is contained in:
KennyLee 2019-05-16 15:37:59 +08:00
parent c37e2c79cc
commit a4b38e7741
4 changed files with 14 additions and 10 deletions

View File

@ -1,4 +1,4 @@
FROM node:8.16-jessie
FROM node:12.2-stretch
MAINTAINER kennylee26 <kennylee26@gmail.com>
@ -8,9 +8,10 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# 各大镜像源偶尔抽风,谨慎起见安装时还是从官方吧,如果必需本地构建,再尝试挪到上面,不过就是否抽风了。
# 由于各大镜像源间接性抽风,谨慎起见还是从官方源安装
# 如果必需本地构建,再尝试挪到上面,不过就得看看当时镜像源是否抽风了。
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
COPY jessie.sources.list /etc/apt/sources.list
COPY stretch.sources.list /etc/apt/sources.list
RUN sed -i 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen

View File

@ -1,4 +1,4 @@
FROM node:alpine
FROM node:12.2-alpine
MAINTAINER kennylee26 <kennylee26@gmail.com>
@ -11,7 +11,7 @@ RUN apk --no-cache update && \
apk --no-cache add curl bash tzdata tar unzip && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
echo -ne "Alpine Linux 3.4 image. (`uname -rsv`)\n" >> /root/.built && \
echo -ne "Alpine Linux 3.9 image. (`uname -rsv`)\n" >> /root/.built && \
rm -fr /tmp/* /var/cache/apk/*
# add cnpm for taobao registry

View File

@ -1,5 +0,0 @@
deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib
deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib

View File

@ -0,0 +1,8 @@
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