env的docker镜像增加时区设置
This commit is contained in:
parent
fb9eb9434f
commit
e61348fce9
20
Dockerfile_env
Normal file
20
Dockerfile_env
Normal 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 [ "" ]
|
@ -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 [ "" ]
|
Loading…
x
Reference in New Issue
Block a user