forked from HXSecurity/DongTai-webapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfileDev
25 lines (18 loc) · 801 Bytes
/
DockerfileDev
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
FROM python:3.7-slim
ARG VERSION
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8
ENV TZ=Asia/Shanghai
ENV debug=true
RUN apt-get update -y \
&& apt install -y gcc make cmake libmariadb-dev curl
RUN curl -L https://github.com/Endava/cats/releases/download/cats-7.0.1/cats-linux -o /usr/local/bin/cats \
&& chmod +x /usr/local/bin/cats \
&& ln -s /usr/local/bin/cats /usr/bin/cats
COPY requirements-test.txt /opt/dongtai/webapi/requirements.txt
RUN pip3 install --upgrade pip && pip3 install -r /opt/dongtai/webapi/requirements.txt
COPY dongtai-agent-python.tar.gz /tmp/dongtai-agent-python.tar.gz
RUN pip3 install /tmp/dongtai-agent-python.tar.gz
COPY . /opt/dongtai/webapi
WORKDIR /opt/dongtai/webapi
CMD ["/usr/local/bin/uwsgi","--ini", "/opt/dongtai/webapi/conf/uwsgi.ini"]