forked from longguikeji/arkid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-for-dev
More file actions
17 lines (16 loc) · 879 Bytes
/
Dockerfile-for-dev
File metadata and controls
17 lines (16 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## 用来开发的镜像,devops/docker-compose/docker-compose.yml
## docker build -t arkid-dev . -f Dockerfile-for-dev
FROM registry.cn-hangzhou.aliyuncs.com/newbe36524/vscode_python:0-3.6
COPY *.txt ./
COPY uwsgi.ini /etc/uwsgi/uwsgi.ini
COPY devops/pip.conf /root/.pip/pip.conf
RUN sed -i "s@http://deb.debian.org/debian@http://mirrors.aliyun.com/debian/@g" /etc/apt/sources.list &&\
sed -i "s@http://security.debian.org/debian-security@http://mirrors.aliyun.com/debian-security@g" /etc/apt/sources.list &&\
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&\
apt-get update &&\
apt-get install -y --no-install-recommends \
vim supervisor gettext xmlsec1 \
python-dev default-libmysqlclient-dev &&\
pip install uwsgi mysqlclient==1.4.6 &&\
pip install -r requirements.txt &&\
pip install -r requirements-dev.txt