增加 docker 支持

This commit is contained in:
Jalin
2019-01-10 17:23:08 +08:00
parent b323e3d953
commit f93fdcfd88
4 changed files with 147 additions and 2 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM python:3.6.6-slim
MAINTAINER <pjialin admin@pjialin.com>
WORKDIR /code
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN mkdir /data
RUN mkdir -p /data/query /data/user
VOLUME /data
COPY . .
COPY env.docker.py.example /config/env.py
CMD [ "python", "main.py" , "-c", "/config/env.py"]