-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·48 lines (35 loc) · 955 Bytes
/
Copy pathDockerfile
File metadata and controls
executable file
·48 lines (35 loc) · 955 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:16.04
MAINTAINER Aaron <ngauer@gmail.com>
#安装python
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
vim \
gcc\
libpython3-dev\
libsqlite3-dev\
libbz2-dev\
libxml2-dev\
libffi-dev\
libssl-dev\
libxslt1-dev\
python3 \
curl\
python3-setuptools\
python-setuptools\
git\
nginx\
supervisor\
&& rm -rf /var/lib/apt/lists/*
# 安装pip
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python3
# nginx 配置
COPY . /home/www-data/Naga/
COPY conf/naga.conf /etc/nginx/conf.d/
COPY conf/s_naga.conf /etc/supervisor/conf.d/
# 安装依赖
RUN pip3 install uwsgi
RUN pip3 install -r /home/www-data/Naga/requirements.txt
# 暴露端口
EXPOSE 8000