env的docker镜像增加时区设置

This commit is contained in:
zhl 2019-05-10 10:07:32 +08:00
parent fb9eb9434f
commit e61348fce9
2 changed files with 20 additions and 7 deletions

20
Dockerfile_env Normal file
View File

@ -0,0 +1,20 @@
FROM node:8.12.0-alpine
RUN echo "http://mirrors.aliyun.com/alpine/v3.8/main/" > /etc/apk/repositories \
&& apk add --update \
python \
python-dev \
py-pip \
build-base \
autoconf \
automake \
libtool \
libpng-dev \
&& pip install virtualenv \
&& rm -rf /var/cache/apk/*
# Install base packages and set timezone ShangHai
RUN apk update && apk add bash tzdata \
&& cp -r -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
CMD [ "" ]

View File

@ -1,7 +0,0 @@
FROM node:8.12.0-alpine
RUN npm config set unsafe-perm true\
&& npm install -g pm2 \
&& rm -fr /tmp/* ~/.npm
CMD [ "" ]