-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
38 lines (30 loc) · 1.02 KB
/
Dockerfile
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
29
30
31
32
33
34
35
36
37
from ubuntu:16.04
ADD ./sources.list /etc/apt/sources.list
RUN apt-get update && \
apt-get install -y software-properties-common && \
apt-get install -y libmysqlclient-dev && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && \
apt-get install -y python3.6 python3.6-dev python3-pip && \
mv /usr/bin/python3.6 /usr/bin/python3
## 时区
RUN apt-get update -y && apt-get install -y tzdata
RUN rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
## pip env
RUN mkdir /root/.pip/
ADD ./pip.conf /root/.pip/pip.conf
## locale and encode
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
## vim
RUN apt-get update -y && apt-get install -y vim
## zsh
RUN apt-get update -y && \
apt-get install -y zsh && \
apt-get install -y curl && \
apt-get install -y git
## uwsgi
RUN pip3 install uwsgi