-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 592 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 592 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# Python2 Dockerfile
#
# https://github.com/ibbd/dockerfile-python/python2
#
# sudo docker build -t ibbd/python2 ./
#
# Pull base image.
FROM python:2.7-slim
MAINTAINER Alex Cai "cyy0523xc@gmail.com"
# 使用阿里云的镜像
ADD sources.list /etc/apt/sources.list
# install
# ipython: http://ipython.org/install.html
RUN \
mkdir -p /var/www \
&& devPypiSource='-i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com' \
&& pip install $devPypiSource ipython
# Define working directory.
WORKDIR /var/www
# 解决时区问题
ENV TZ "Asia/Shanghai"