提交 d8b0ab27 authored 作者: blu's avatar blu

init

上级 eb771884
......@@ -2,10 +2,10 @@ FROM python:slim
ENV MAINTAINER=Bruce.Lu
WORKDIR /apps/app
RUN apt -qq update && apt install -y redis-server
RUN apt -qq update && apt install -y redis-server build-essential
ENV BIN_PRE=/usr/local/bin/python
ENV BIN_NAME=web/detect_video.py
ENV BIN_NAME=detect_video.py
ENV DL_DIR=/data
#ENV REDIS=
ENV BIN_DIR=/apps/app/
......@@ -16,9 +16,10 @@ COPY detect_video.py /apps/app/
COPY requirement.txt /apps/app/
COPY edet_model.pth /apps/app/
COPY src /apps/app/src
RUN pip install --upgrade cython numpy
RUN pip install -r requirement.txt
COPY start.sh /apps/app
RUN pip install pillow==6.1 torchvision opencv-contrib-python
EXPOSE 5555
EXPOSE 5000
......
......@@ -6,6 +6,7 @@ paho-mqtt
azure-storage-file-share
pyyaml
redis
torch
efficientnet_pytorch
tensorboardX
pycocotools
\ No newline at end of file
#!/bin/sh
redis-server &
celery multi start 2 -E -A web.worker -l info -n %n.%%h --autoscale=4,1 --pidfile=%n.pid
celery multi start 2 -E -A web.worker -l info -n %n.%h --autoscale=4,1 --pidfile=%n.pid
flower -A web.worker --loglevel=info &
python web.py
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论